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

Unified Diff: runtime/vm/locations.h

Issue 10823131: Add deopt info to code object and print it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.h
===================================================================
--- runtime/vm/locations.h (revision 10302)
+++ runtime/vm/locations.h (working copy)
@@ -23,6 +23,18 @@
// enumeration), constant locations contain a tagged (low 2 bits are set to 01)
// Object handle
class Location : public ValueObject {
+ private:
+ enum {
+ // Number of bits required to encode Kind value.
+ kBitsForKind = 3,
+ kBitsForPayload = kWordSize * kBitsPerByte - kBitsForKind,
+ };
+
+ static const uword kInvalidLocation = 0;
+ static const uword kConstantMask = 0x3;
+ static const intptr_t kStackIndexBias =
+ static_cast<intptr_t>(1) << (kBitsForPayload - 1);
+
public:
// Constant payload can overlap with kind field so Kind values
// have to be chosen in a way that their last 2 bits are never
@@ -49,15 +61,6 @@
kStackSlot = 4,
};
- enum {
- // Number of bits required to encode Kind value.
- kBitsForKind = 3,
- kBitsForPayload = kWordSize * kBitsPerByte - kBitsForKind,
- };
-
- static const uword kInvalidLocation = 0;
- static const uword kConstantMask = 0x3;
-
Location() : value_(kInvalidLocation) {
ASSERT(IsInvalid());
}
@@ -148,8 +151,6 @@
}
// Spill slots.
- static const intptr_t kStackIndexBias =
- static_cast<intptr_t>(1) << (kBitsForPayload - 1);
static Location StackSlot(intptr_t stack_index) {
ASSERT((-kStackIndexBias <= stack_index) &&
(stack_index < kStackIndexBias));
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698