diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-07 18:38:38 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-07 22:11:18 +0100 |
commit | dad73f645cde6920e79db956e7ef82ed640d7615 (patch) | |
tree | 7ba3f3fc7e0722c5f130065461b7c56f571af383 /deps/v8/src/field-index.h | |
parent | 53ba494537259b18b346dc6150d6a100c557e08f (diff) | |
download | node-new-dad73f645cde6920e79db956e7ef82ed640d7615.tar.gz |
deps: upgrade v8 to 3.31.74.1
PR-URL: https://github.com/iojs/io.js/pull/243
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'deps/v8/src/field-index.h')
-rw-r--r-- | deps/v8/src/field-index.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/field-index.h b/deps/v8/src/field-index.h index 2558529070..76b111632d 100644 --- a/deps/v8/src/field-index.h +++ b/deps/v8/src/field-index.h @@ -34,6 +34,8 @@ class FieldIndex 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 FINAL { // Zero-based from the first inobject property. Overflows to out-of-object // properties. int property_index() const { - DCHECK(!IsHiddenField::decode(bit_field_)); + DCHECK(!is_hidden_field()); int result = index() - first_inobject_property_offset() / kPointerSize; if (!is_inobject()) { result += InObjectPropertyBits::decode(bit_field_); @@ -86,7 +88,7 @@ class FieldIndex FINAL { explicit FieldIndex(int bit_field) : bit_field_(bit_field) {} int first_inobject_property_offset() const { - DCHECK(!IsHiddenField::decode(bit_field_)); + DCHECK(!is_hidden_field()); return FirstInobjectPropertyOffsetBits::decode(bit_field_); } |