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

Unified Diff: runtime/vm/locations.h

Issue 2244313002: DBC: Fleshing out the polymorphic instance call instruction (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Cleanup Created 4 years, 4 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/vm/intermediate_language_dbc.cc ('k') | runtime/vm/simulator_dbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.h
diff --git a/runtime/vm/locations.h b/runtime/vm/locations.h
index fae87a7f306e64097c146e99b1725aaeaeb7055c..069200788542475a87c2248363edfa7a93e0d2d8 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -398,7 +398,11 @@ class Location : public ValueObject {
typedef BitField<uword, Policy, 0, 3> PolicyField;
// Layout for stack slots.
+#if defined(ARCH_IS_64_BIT)
+ static const intptr_t kBitsForBaseReg = 6;
+#else
static const intptr_t kBitsForBaseReg = 5;
+#endif
static const intptr_t kBitsForStackIndex = kBitsForPayload - kBitsForBaseReg;
class StackSlotBaseField :
public BitField<uword, Register, 0, kBitsForBaseReg> {};
« no previous file with comments | « runtime/vm/intermediate_language_dbc.cc ('k') | runtime/vm/simulator_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698