Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: runtime/vm/constants_dbc.h

Issue 1961953003: DBC: Adds DecodeLoadObjectFromPoolOrThread, enables tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Decode more instructions Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/instructions_dbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/constants_dbc.h
diff --git a/runtime/vm/constants_dbc.h b/runtime/vm/constants_dbc.h
index 7234022cc3de717e665afdbcf8eeb0ffa87061e8..54fc66b477a12e22d9d5374a3e8e6cc86af12df1 100644
--- a/runtime/vm/constants_dbc.h
+++ b/runtime/vm/constants_dbc.h
@@ -468,6 +468,12 @@ BYTECODES_LIST(DECLARE_BYTECODE)
#endif
return (call >> 8) & 0xFF;
}
+
+ static Instr At(uword pc) { return *reinterpret_cast<Instr*>(pc); }
+
+ private:
+ DISALLOW_ALLOCATION();
+ DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecode);
};
// Various dummy declarations to make shared code compile.
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/instructions_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698