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

Unified Diff: src/field-index.h

Issue 528773002: Sub-minor-key-ify HandlerStubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/code-stubs-hydrogen.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-index.h
diff --git a/src/field-index.h b/src/field-index.h
index 78b5db1190c8ec6a3c6a8126d72898440ac984e5..d701f0afd8953dec133b85f1658c6a40c45f2f39 100644
--- a/src/field-index.h
+++ b/src/field-index.h
@@ -26,6 +26,7 @@ class FieldIndex V8_FINAL {
static FieldIndex ForDescriptor(Map* map, int descriptor_index);
static FieldIndex ForLoadByFieldIndex(Map* map, int index);
static FieldIndex ForKeyedLookupCacheIndex(Map* map, int index);
+ static FieldIndex FromFieldAccessStubKey(int key);
int GetLoadByFieldIndex() const;
@@ -82,6 +83,8 @@ class FieldIndex V8_FINAL {
InObjectPropertyBits::encode(inobject_properties);
}
+ explicit FieldIndex(int bit_field) : bit_field_(bit_field) {}
+
int first_inobject_property_offset() const {
DCHECK(!IsHiddenField::decode(bit_field_));
return FirstInobjectPropertyOffsetBits::decode(bit_field_);
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698