diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-18 14:34:04 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-04 11:15:27 +0000 |
commit | e6430e577f105ad8813c92e75c54660c4985026e (patch) | |
tree | 88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/v8/src/field-index-inl.h | |
parent | 53d399fe6415a96ea6986ec0d402a9c07da72453 (diff) | |
download | qtwebengine-chromium-e6430e577f105ad8813c92e75c54660c4985026e.tar.gz |
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/v8/src/field-index-inl.h')
-rw-r--r-- | chromium/v8/src/field-index-inl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/v8/src/field-index-inl.h b/chromium/v8/src/field-index-inl.h index db6ba3ed3db..c4d3342f3ff 100644 --- a/chromium/v8/src/field-index-inl.h +++ b/chromium/v8/src/field-index-inl.h @@ -11,8 +11,7 @@ namespace v8 { namespace internal { - -inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) { +inline FieldIndex FieldIndex::ForInObjectOffset(int offset, const Map* map) { DCHECK((offset % kPointerSize) == 0); int index = offset / kPointerSize; DCHECK(map == NULL || @@ -21,8 +20,7 @@ inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) { return FieldIndex(true, index, false, 0, 0, true); } - -inline FieldIndex FieldIndex::ForPropertyIndex(Map* map, +inline FieldIndex FieldIndex::ForPropertyIndex(const Map* map, int property_index, bool is_double) { DCHECK(map->instance_type() >= FIRST_NONSTRING_TYPE); @@ -42,7 +40,8 @@ inline FieldIndex FieldIndex::ForPropertyIndex(Map* map, // Takes an index as computed by GetLoadByFieldIndex and reconstructs a // FieldIndex object from it. -inline FieldIndex FieldIndex::ForLoadByFieldIndex(Map* map, int orig_index) { +inline FieldIndex FieldIndex::ForLoadByFieldIndex(const Map* map, + int orig_index) { int field_index = orig_index; bool is_inobject = true; bool is_double = field_index & 1; @@ -85,7 +84,8 @@ inline int FieldIndex::GetLoadByFieldIndex() const { return is_double() ? (result | 1) : result; } -inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) { +inline FieldIndex FieldIndex::ForDescriptor(const Map* map, + int descriptor_index) { PropertyDetails details = map->instance_descriptors()->GetDetails(descriptor_index); int field_index = details.field_index(); |