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

Side by Side Diff: src/lookup.cc

Issue 2622723003: [compiler] Support Object.create(null) inlining in TF (Closed)
Patch Set: initializing all object fields 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/lookup.h ('k') | src/objects.h » ('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 #include "src/lookup.h" 5 #include "src/lookup.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/elements.h" 9 #include "src/elements.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void LookupIterator::Next() { 67 void LookupIterator::Next() {
68 DCHECK_NE(JSPROXY, state_); 68 DCHECK_NE(JSPROXY, state_);
69 DCHECK_NE(TRANSITION, state_); 69 DCHECK_NE(TRANSITION, state_);
70 DisallowHeapAllocation no_gc; 70 DisallowHeapAllocation no_gc;
71 has_property_ = false; 71 has_property_ = false;
72 72
73 JSReceiver* holder = *holder_; 73 JSReceiver* holder = *holder_;
74 Map* map = holder->map(); 74 Map* map = holder->map();
75 75
76 if (map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE) { 76 if (map->IsSpecialReceiverMap()) {
77 state_ = IsElement() ? LookupInSpecialHolder<true>(map, holder) 77 state_ = IsElement() ? LookupInSpecialHolder<true>(map, holder)
78 : LookupInSpecialHolder<false>(map, holder); 78 : LookupInSpecialHolder<false>(map, holder);
79 if (IsFound()) return; 79 if (IsFound()) return;
80 } 80 }
81 81
82 IsElement() ? NextInternal<true>(map, holder) 82 IsElement() ? NextInternal<true>(map, holder)
83 : NextInternal<false>(map, holder); 83 : NextInternal<false>(map, holder);
84 } 84 }
85 85
86 template <bool is_element> 86 template <bool is_element>
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 874
875 // We have found a cached property! Modify the iterator accordingly. 875 // We have found a cached property! Modify the iterator accordingly.
876 name_ = maybe_name.ToHandleChecked(); 876 name_ = maybe_name.ToHandleChecked();
877 Restart(); 877 Restart();
878 CHECK_EQ(state(), LookupIterator::DATA); 878 CHECK_EQ(state(), LookupIterator::DATA);
879 return true; 879 return true;
880 } 880 }
881 881
882 } // namespace internal 882 } // namespace internal
883 } // namespace v8 883 } // namespace v8
OLDNEW
« no previous file with comments | « src/lookup.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698