OLD | NEW |
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_LOOKUP_H_ | 5 #ifndef V8_LOOKUP_H_ |
6 #define V8_LOOKUP_H_ | 6 #define V8_LOOKUP_H_ |
7 | 7 |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return (configuration_ & kPrototypeChain) != 0; | 202 return (configuration_ & kPrototypeChain) != 0; |
203 } | 203 } |
204 | 204 |
205 /* ACCESS_CHECK */ | 205 /* ACCESS_CHECK */ |
206 bool HasAccess() const; | 206 bool HasAccess() const; |
207 | 207 |
208 /* PROPERTY */ | 208 /* PROPERTY */ |
209 bool ExtendingNonExtensible(Handle<JSObject> receiver) { | 209 bool ExtendingNonExtensible(Handle<JSObject> receiver) { |
210 DCHECK(receiver.is_identical_to(GetStoreTarget())); | 210 DCHECK(receiver.is_identical_to(GetStoreTarget())); |
211 return !receiver->map()->is_extensible() && | 211 return !receiver->map()->is_extensible() && |
212 (IsElement() || !isolate_->IsInternallyUsedPropertyName(name_)); | 212 (IsElement() || !name_->IsPrivate()); |
213 } | 213 } |
214 void PrepareForDataProperty(Handle<Object> value); | 214 void PrepareForDataProperty(Handle<Object> value); |
215 void PrepareTransitionToDataProperty(Handle<JSObject> receiver, | 215 void PrepareTransitionToDataProperty(Handle<JSObject> receiver, |
216 Handle<Object> value, | 216 Handle<Object> value, |
217 PropertyAttributes attributes, | 217 PropertyAttributes attributes, |
218 Object::StoreFromKeyed store_mode); | 218 Object::StoreFromKeyed store_mode); |
219 bool IsCacheableTransition() { | 219 bool IsCacheableTransition() { |
220 DCHECK_EQ(TRANSITION, state_); | 220 DCHECK_EQ(TRANSITION, state_); |
221 return transition_->IsPropertyCell() || | 221 return transition_->IsPropertyCell() || |
222 (!transition_map()->is_dictionary_map() && | 222 (!transition_map()->is_dictionary_map() && |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 Handle<JSReceiver> holder_; | 336 Handle<JSReceiver> holder_; |
337 const Handle<JSReceiver> initial_holder_; | 337 const Handle<JSReceiver> initial_holder_; |
338 uint32_t number_; | 338 uint32_t number_; |
339 }; | 339 }; |
340 | 340 |
341 | 341 |
342 } // namespace internal | 342 } // namespace internal |
343 } // namespace v8 | 343 } // namespace v8 |
344 | 344 |
345 #endif // V8_LOOKUP_H_ | 345 #endif // V8_LOOKUP_H_ |
OLD | NEW |