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

Side by Side Diff: src/lookup.h

Issue 2636493003: Revert of [compiler] Support Object.create(null) inlining in TF (Closed)
Patch Set: Created 3 years, 11 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/compiler/js-builtin-reducer.cc ('k') | 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/globals.h" 9 #include "src/globals.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 Handle<Map> GetReceiverMap() const; 281 Handle<Map> GetReceiverMap() const;
282 282
283 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); 283 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map);
284 284
285 template <bool is_element> 285 template <bool is_element>
286 V8_EXPORT_PRIVATE void Start(); 286 V8_EXPORT_PRIVATE void Start();
287 template <bool is_element> 287 template <bool is_element>
288 void NextInternal(Map* map, JSReceiver* holder); 288 void NextInternal(Map* map, JSReceiver* holder);
289 template <bool is_element> 289 template <bool is_element>
290 inline State LookupInHolder(Map* map, JSReceiver* holder) { 290 inline State LookupInHolder(Map* map, JSReceiver* holder) {
291 return map->IsSpecialReceiverMap() 291 return map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE
292 ? LookupInSpecialHolder<is_element>(map, holder) 292 ? LookupInSpecialHolder<is_element>(map, holder)
293 : LookupInRegularHolder<is_element>(map, holder); 293 : LookupInRegularHolder<is_element>(map, holder);
294 } 294 }
295 template <bool is_element> 295 template <bool is_element>
296 State LookupInRegularHolder(Map* map, JSReceiver* holder); 296 State LookupInRegularHolder(Map* map, JSReceiver* holder);
297 template <bool is_element> 297 template <bool is_element>
298 State LookupInSpecialHolder(Map* map, JSReceiver* holder); 298 State LookupInSpecialHolder(Map* map, JSReceiver* holder);
299 template <bool is_element> 299 template <bool is_element>
300 void RestartLookupForNonMaskingInterceptors() { 300 void RestartLookupForNonMaskingInterceptors() {
301 RestartInternal<is_element>(InterceptorState::kProcessNonMasking); 301 RestartInternal<is_element>(InterceptorState::kProcessNonMasking);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 const Handle<JSReceiver> initial_holder_; 361 const Handle<JSReceiver> initial_holder_;
362 const uint32_t index_; 362 const uint32_t index_;
363 uint32_t number_; 363 uint32_t number_;
364 }; 364 };
365 365
366 366
367 } // namespace internal 367 } // namespace internal
368 } // namespace v8 368 } // namespace v8
369 369
370 #endif // V8_LOOKUP_H_ 370 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698