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

Side by Side Diff: src/lookup.h

Issue 2127583002: [runtime] Better encapsulation of dictionary objects handling in lookup iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes Created 4 years, 5 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/ic/x87/handler-compiler-x87.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/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 } 184 }
185 return Handle<JSObject>::cast(receiver_); 185 return Handle<JSObject>::cast(receiver_);
186 } 186 }
187 187
188 bool is_dictionary_holder() const { return !holder_->HasFastProperties(); } 188 bool is_dictionary_holder() const { return !holder_->HasFastProperties(); }
189 Handle<Map> transition_map() const { 189 Handle<Map> transition_map() const {
190 DCHECK_EQ(TRANSITION, state_); 190 DCHECK_EQ(TRANSITION, state_);
191 return Handle<Map>::cast(transition_); 191 return Handle<Map>::cast(transition_);
192 } 192 }
193 Handle<PropertyCell> transition_cell() const {
194 DCHECK_EQ(TRANSITION, state_);
195 return Handle<PropertyCell>::cast(transition_);
196 }
193 template <class T> 197 template <class T>
194 Handle<T> GetHolder() const { 198 Handle<T> GetHolder() const {
195 DCHECK(IsFound()); 199 DCHECK(IsFound());
196 return Handle<T>::cast(holder_); 200 return Handle<T>::cast(holder_);
197 } 201 }
198 202
199 bool HolderIsReceiverOrHiddenPrototype() const; 203 bool HolderIsReceiverOrHiddenPrototype() const;
200 204
201 bool check_prototype_chain() const { 205 bool check_prototype_chain() const {
202 return (configuration_ & kPrototypeChain) != 0; 206 return (configuration_ & kPrototypeChain) != 0;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 const Handle<JSReceiver> initial_holder_; 366 const Handle<JSReceiver> initial_holder_;
363 const uint32_t index_; 367 const uint32_t index_;
364 uint32_t number_; 368 uint32_t number_;
365 }; 369 };
366 370
367 371
368 } // namespace internal 372 } // namespace internal
369 } // namespace v8 373 } // namespace v8
370 374
371 #endif // V8_LOOKUP_H_ 375 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698