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

Side by Side Diff: src/objects.h

Issue 1145213005: [strong] cache strong object literal maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix map comparison Created 5 years, 7 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.cc ('k') | src/objects.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 5980 matching lines...) Expand 10 before | Expand all | Expand 10 after
5991 5991
5992 // Tells whether the instance has a call-as-function handler. 5992 // Tells whether the instance has a call-as-function handler.
5993 inline void set_is_observed() { 5993 inline void set_is_observed() {
5994 set_bit_field(bit_field() | (1 << kIsObserved)); 5994 set_bit_field(bit_field() | (1 << kIsObserved));
5995 } 5995 }
5996 5996
5997 inline bool is_observed() { 5997 inline bool is_observed() {
5998 return ((1 << kIsObserved) & bit_field()) != 0; 5998 return ((1 << kIsObserved) & bit_field()) != 0;
5999 } 5999 }
6000 6000
6001 inline void set_is_strong(bool value); 6001 inline void set_is_strong();
6002 inline bool is_strong(); 6002 inline bool is_strong();
6003 inline void set_is_extensible(bool value); 6003 inline void set_is_extensible(bool value);
6004 inline bool is_extensible(); 6004 inline bool is_extensible();
6005 inline void set_is_prototype_map(bool value); 6005 inline void set_is_prototype_map(bool value);
6006 inline bool is_prototype_map() const; 6006 inline bool is_prototype_map() const;
6007 6007
6008 inline void set_elements_kind(ElementsKind elements_kind) { 6008 inline void set_elements_kind(ElementsKind elements_kind) {
6009 DCHECK(static_cast<int>(elements_kind) < kElementsKindCount); 6009 DCHECK(static_cast<int>(elements_kind) < kElementsKindCount);
6010 DCHECK(kElementsKindCount <= (1 << Map::ElementsKindBits::kSize)); 6010 DCHECK(kElementsKindCount <= (1 << Map::ElementsKindBits::kSize));
6011 set_bit_field2(Map::ElementsKindBits::update(bit_field2(), elements_kind)); 6011 set_bit_field2(Map::ElementsKindBits::update(bit_field2(), elements_kind));
(...skipping 5118 matching lines...) Expand 10 before | Expand all | Expand 10 after
11130 } else { 11130 } else {
11131 value &= ~(1 << bit_position); 11131 value &= ~(1 << bit_position);
11132 } 11132 }
11133 return value; 11133 return value;
11134 } 11134 }
11135 }; 11135 };
11136 11136
11137 } } // namespace v8::internal 11137 } } // namespace v8::internal
11138 11138
11139 #endif // V8_OBJECTS_H_ 11139 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698