diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-20 11:20:08 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-24 16:30:34 +0100 |
commit | c5dd5032cdbff0b07ada55bf2ee0822c99ca82e4 (patch) | |
tree | f34cd1ab99cc7bdcc51f24595a650e472fd9faea | |
parent | 3af1243c679a1e9d1dad09520678b5ea0644064e (diff) |
cli/pickle: Pickle call flags as well.
-rw-r--r-- | cli/cli_pickle.cpp | 2 | ||||
-rwxr-xr-x | scripts/unpickle.py | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/cli/cli_pickle.cpp b/cli/cli_pickle.cpp index 5c267e0e..4d62b1e9 100644 --- a/cli/cli_pickle.cpp +++ b/cli/cli_pickle.cpp @@ -183,6 +183,8 @@ public: writer.writeNone(); } + writer.writeInt(call->flags); + writer.endTuple(); } }; diff --git a/scripts/unpickle.py b/scripts/unpickle.py index 50d8480a..edd5af7f 100755 --- a/scripts/unpickle.py +++ b/scripts/unpickle.py @@ -41,6 +41,20 @@ import re import cPickle as pickle +# Same as trace_model.hpp's call flags +CALL_FLAG_FAKE = (1 << 0) +CALL_FLAG_NON_REPRODUCIBLE = (1 << 1) +CALL_FLAG_NO_SIDE_EFFECTS = (1 << 2) +CALL_FLAG_RENDER = (1 << 3) +CALL_FLAG_SWAP_RENDERTARGET = (1 << 4) +CALL_FLAG_END_FRAME = (1 << 5) +CALL_FLAG_INCOMPLETE = (1 << 6) +CALL_FLAG_VERBOSE = (1 << 7) +CALL_FLAG_MARKER = (1 << 8) +CALL_FLAG_MARKER_PUSH = (1 << 9) +CALL_FLAG_MARKER_POP = (1 << 10) + + class Visitor: def __init__(self): @@ -163,7 +177,7 @@ class Rebuilder(Visitor): class Call: def __init__(self, callTuple): - self.no, self.functionName, self.args, self.ret = callTuple + self.no, self.functionName, self.args, self.ret, self.flags = callTuple self._hash = None def __str__(self): |