summaryrefslogtreecommitdiff
path: root/chromium/v8/src/field-index-inl.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-08 10:28:10 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-20 13:40:30 +0000
commite733310db58160074f574c429d48f8308c0afe17 (patch)
treef8aef4b7e62a69928dbcf880620eece20f98c6df /chromium/v8/src/field-index-inl.h
parent2f583e4aec1ae3a86fa047829c96b310dc12ecdf (diff)
downloadqtwebengine-chromium-e733310db58160074f574c429d48f8308c0afe17.tar.gz
BASELINE: Update Chromium to 56.0.2924.122
Change-Id: I4e04de8f47e47e501c46ed934c76a431c6337ced Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/v8/src/field-index-inl.h')
-rw-r--r--chromium/v8/src/field-index-inl.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/chromium/v8/src/field-index-inl.h b/chromium/v8/src/field-index-inl.h
index c2f25bb7f04..a728eb39df5 100644
--- a/chromium/v8/src/field-index-inl.h
+++ b/chromium/v8/src/field-index-inl.h
@@ -6,7 +6,6 @@
#define V8_FIELD_INDEX_INL_H_
#include "src/field-index.h"
-#include "src/ic/handler-configuration.h"
namespace v8 {
namespace internal {
@@ -85,39 +84,6 @@ inline int FieldIndex::GetLoadByFieldIndex() const {
return is_double() ? (result | 1) : result;
}
-// Takes an offset as computed by GetLoadByFieldOffset and reconstructs a
-// FieldIndex object from it.
-// static
-inline FieldIndex FieldIndex::ForLoadByFieldOffset(Map* map, int offset) {
- DCHECK(LoadHandlerTypeBit::decode(offset) == kLoadICHandlerForProperties);
- bool is_inobject = FieldOffsetIsInobject::decode(offset);
- bool is_double = FieldOffsetIsDouble::decode(offset);
- int field_index = FieldOffsetOffset::decode(offset) >> kPointerSizeLog2;
- int first_inobject_offset = 0;
- if (is_inobject) {
- first_inobject_offset =
- map->IsJSObjectMap() ? map->GetInObjectPropertyOffset(0) : 0;
- } else {
- first_inobject_offset = FixedArray::kHeaderSize;
- }
- int inobject_properties =
- map->IsJSObjectMap() ? map->GetInObjectProperties() : 0;
- FieldIndex result(is_inobject, field_index, is_double, inobject_properties,
- first_inobject_offset);
- DCHECK(result.GetLoadByFieldOffset() == offset);
- return result;
-}
-
-// Returns the offset format consumed by TurboFan stubs:
-// (offset << 3) | (is_double << 2) | (is_inobject << 1) | is_property
-// Where |offset| is relative to object start or FixedArray start, respectively.
-inline int FieldIndex::GetLoadByFieldOffset() const {
- return FieldOffsetIsInobject::encode(is_inobject()) |
- FieldOffsetIsDouble::encode(is_double()) |
- FieldOffsetOffset::encode(index() << kPointerSizeLog2) |
- LoadHandlerTypeBit::encode(kLoadICHandlerForProperties);
-}
-
inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) {
PropertyDetails details =
map->instance_descriptors()->GetDetails(descriptor_index);
@@ -126,30 +92,10 @@ inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) {
details.representation().IsDouble());
}
-
-inline FieldIndex FieldIndex::ForKeyedLookupCacheIndex(Map* map, int index) {
- if (FLAG_compiled_keyed_generic_loads) {
- return ForLoadByFieldIndex(map, index);
- } else {
- return ForPropertyIndex(map, index);
- }
-}
-
-
inline FieldIndex FieldIndex::FromFieldAccessStubKey(int key) {
return FieldIndex(key);
}
-
-inline int FieldIndex::GetKeyedLookupCacheIndex() const {
- if (FLAG_compiled_keyed_generic_loads) {
- return GetLoadByFieldIndex();
- } else {
- return property_index();
- }
-}
-
-
} // namespace internal
} // namespace v8