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

Side by Side Diff: src/field-index.h

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FIELD_INDEX_H_ 5 #ifndef V8_FIELD_INDEX_H_
6 #define V8_FIELD_INDEX_H_ 6 #define V8_FIELD_INDEX_H_
7 7
8 #include "src/property-details.h" 8 #include "src/property-details.h"
9 #include "src/utils.h" 9 #include "src/utils.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 class Map; 14 class Map;
15 15
16 // Wrapper class to hold a field index, usually but not necessarily generated 16 // Wrapper class to hold a field index, usually but not necessarily generated
17 // from a property index. When available, the wrapper class captures additional 17 // from a property index. When available, the wrapper class captures additional
18 // information to allow the field index to be translated back into the property 18 // information to allow the field index to be translated back into the property
19 // index it was originally generated from. 19 // index it was originally generated from.
20 class FieldIndex FINAL { 20 class FieldIndex final {
21 public: 21 public:
22 static FieldIndex ForPropertyIndex(Map* map, 22 static FieldIndex ForPropertyIndex(Map* map,
23 int index, 23 int index,
24 bool is_double = false); 24 bool is_double = false);
25 static FieldIndex ForInObjectOffset(int offset, Map* map = NULL); 25 static FieldIndex ForInObjectOffset(int offset, Map* map = NULL);
26 static FieldIndex ForDescriptor(Map* map, int descriptor_index); 26 static FieldIndex ForDescriptor(Map* map, int descriptor_index);
27 static FieldIndex ForLoadByFieldIndex(Map* map, int index); 27 static FieldIndex ForLoadByFieldIndex(Map* map, int index);
28 static FieldIndex ForKeyedLookupCacheIndex(Map* map, int index); 28 static FieldIndex ForKeyedLookupCacheIndex(Map* map, int index);
29 static FieldIndex FromFieldAccessStubKey(int key); 29 static FieldIndex FromFieldAccessStubKey(int key);
30 30
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 class IsHiddenField 107 class IsHiddenField
108 : public BitField<bool, FirstInobjectPropertyOffsetBits::kNext, 1> {}; 108 : public BitField<bool, FirstInobjectPropertyOffsetBits::kNext, 1> {};
109 STATIC_ASSERT(IsHiddenField::kNext <= 32); 109 STATIC_ASSERT(IsHiddenField::kNext <= 32);
110 110
111 int bit_field_; 111 int bit_field_;
112 }; 112 };
113 113
114 } } // namespace v8::internal 114 } } // namespace v8::internal
115 115
116 #endif 116 #endif
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698