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

Side by Side Diff: src/lookup.h

Issue 1660903002: [runtime] Remove receiver==holder check in IntegerIndexedExotic lookup (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | src/lookup.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 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 static Handle<JSReceiver> GetRootForNonJSReceiver( 309 static Handle<JSReceiver> GetRootForNonJSReceiver(
310 Isolate* isolate, Handle<Object> receiver, uint32_t index = kMaxUInt32); 310 Isolate* isolate, Handle<Object> receiver, uint32_t index = kMaxUInt32);
311 inline static Handle<JSReceiver> GetRoot(Isolate* isolate, 311 inline static Handle<JSReceiver> GetRoot(Isolate* isolate,
312 Handle<Object> receiver, 312 Handle<Object> receiver,
313 uint32_t index = kMaxUInt32) { 313 uint32_t index = kMaxUInt32) {
314 if (receiver->IsJSReceiver()) return Handle<JSReceiver>::cast(receiver); 314 if (receiver->IsJSReceiver()) return Handle<JSReceiver>::cast(receiver);
315 return GetRootForNonJSReceiver(isolate, receiver, index); 315 return GetRootForNonJSReceiver(isolate, receiver, index);
316 } 316 }
317 317
318 inline bool IsIntegerIndexedExotic(JSReceiver* holder); 318 State NotFound(JSReceiver* const holder) const;
319 319
320 // If configuration_ becomes mutable, update 320 // If configuration_ becomes mutable, update
321 // HolderIsReceiverOrHiddenPrototype. 321 // HolderIsReceiverOrHiddenPrototype.
322 const Configuration configuration_; 322 const Configuration configuration_;
323 State state_; 323 State state_;
324 bool has_property_; 324 bool has_property_;
325 InterceptorState interceptor_state_; 325 InterceptorState interceptor_state_;
326 PropertyDetails property_details_; 326 PropertyDetails property_details_;
327 Isolate* const isolate_; 327 Isolate* const isolate_;
328 Handle<Name> name_; 328 Handle<Name> name_;
329 uint32_t index_; 329 uint32_t index_;
330 Handle<Object> transition_; 330 Handle<Object> transition_;
331 const Handle<Object> receiver_; 331 const Handle<Object> receiver_;
332 Handle<JSReceiver> holder_; 332 Handle<JSReceiver> holder_;
333 Handle<Map> holder_map_; 333 Handle<Map> holder_map_;
334 const Handle<JSReceiver> initial_holder_; 334 const Handle<JSReceiver> initial_holder_;
335 uint32_t number_; 335 uint32_t number_;
336 }; 336 };
337 337
338 338
339 } // namespace internal 339 } // namespace internal
340 } // namespace v8 340 } // namespace v8
341 341
342 #endif // V8_LOOKUP_H_ 342 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « no previous file | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698