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

Side by Side Diff: src/lookup.h

Issue 1697153002: [runtime] Add fast path to update LookupIterator in simple cases (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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 inline InterceptorInfo* GetInterceptor(JSObject* holder) const { 280 inline InterceptorInfo* GetInterceptor(JSObject* holder) const {
281 if (IsElement()) return holder->GetIndexedInterceptor(); 281 if (IsElement()) return holder->GetIndexedInterceptor();
282 return holder->GetNamedInterceptor(); 282 return holder->GetNamedInterceptor();
283 } 283 }
284 284
285 bool check_hidden() const { return (configuration_ & kHidden) != 0; } 285 bool check_hidden() const { return (configuration_ & kHidden) != 0; }
286 bool check_interceptor() const { 286 bool check_interceptor() const {
287 return (configuration_ & kInterceptor) != 0; 287 return (configuration_ & kInterceptor) != 0;
288 } 288 }
289 int descriptor_number() const { 289 int descriptor_number() const {
290 DCHECK(!IsElement());
290 DCHECK(has_property_); 291 DCHECK(has_property_);
291 DCHECK(!holder_map_->is_dictionary_map()); 292 DCHECK(!holder_map_->is_dictionary_map());
292 return number_; 293 return number_;
293 } 294 }
294 int dictionary_entry() const { 295 int dictionary_entry() const {
296 DCHECK(!IsElement());
295 DCHECK(has_property_); 297 DCHECK(has_property_);
296 DCHECK(holder_map_->is_dictionary_map()); 298 DCHECK(holder_map_->is_dictionary_map());
297 return number_; 299 return number_;
298 } 300 }
299 301
300 static Configuration ComputeConfiguration( 302 static Configuration ComputeConfiguration(
301 Configuration configuration, Handle<Name> name) { 303 Configuration configuration, Handle<Name> name) {
302 if (name->IsPrivate()) { 304 if (name->IsPrivate()) {
303 return static_cast<Configuration>(configuration & 305 return static_cast<Configuration>(configuration &
304 HIDDEN_SKIP_INTERCEPTOR); 306 HIDDEN_SKIP_INTERCEPTOR);
(...skipping 29 matching lines...) Expand all
334 Handle<Map> holder_map_; 336 Handle<Map> holder_map_;
335 const Handle<JSReceiver> initial_holder_; 337 const Handle<JSReceiver> initial_holder_;
336 uint32_t number_; 338 uint32_t number_;
337 }; 339 };
338 340
339 341
340 } // namespace internal 342 } // namespace internal
341 } // namespace v8 343 } // namespace v8
342 344
343 #endif // V8_LOOKUP_H_ 345 #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