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

Unified Diff: src/field-index.h

Issue 391693002: In-object double fields unboxing (for 64-bit only). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
Index: src/field-index.h
diff --git a/src/field-index.h b/src/field-index.h
index 096b33509f7d40dd16d7f046df897b70d511fdf5..e542623ad899d69f2644ab9d1561a1d378cd58f3 100644
--- a/src/field-index.h
+++ b/src/field-index.h
@@ -34,6 +34,8 @@ class FieldIndex V8_FINAL {
return IsInObjectBits::decode(bit_field_);
}
+ bool is_hidden_field() const { return IsHiddenField::decode(bit_field_); }
+
bool is_double() const {
return IsDoubleBits::decode(bit_field_);
}
@@ -55,7 +57,7 @@ class FieldIndex V8_FINAL {
// Zero-based from the first inobject property. Overflows to out-of-object
// properties.
int property_index() const {
- ASSERT(!IsHiddenField::decode(bit_field_));
+ ASSERT(!is_hidden_field());
int result = index() - first_inobject_property_offset() / kPointerSize;
if (!is_inobject()) {
result += InObjectPropertyBits::decode(bit_field_);
@@ -84,7 +86,7 @@ class FieldIndex V8_FINAL {
}
int first_inobject_property_offset() const {
- ASSERT(!IsHiddenField::decode(bit_field_));
+ ASSERT(!is_hidden_field());
return FirstInobjectPropertyOffsetBits::decode(bit_field_);
}
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/flag-definitions.h » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698