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

Side by Side Diff: src/lookup.h

Issue 1754023003: Inline fast-bailout-checks for LookupIterator::UpdateProtector (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 int GetAccessorIndex() const; 250 int GetAccessorIndex() const;
251 int GetConstantIndex() const; 251 int GetConstantIndex() const;
252 Handle<PropertyCell> GetPropertyCell() const; 252 Handle<PropertyCell> GetPropertyCell() const;
253 Handle<Object> GetAccessors() const; 253 Handle<Object> GetAccessors() const;
254 inline Handle<InterceptorInfo> GetInterceptor() const { 254 inline Handle<InterceptorInfo> GetInterceptor() const {
255 DCHECK_EQ(INTERCEPTOR, state_); 255 DCHECK_EQ(INTERCEPTOR, state_);
256 return handle(GetInterceptor(JSObject::cast(*holder_)), isolate_); 256 return handle(GetInterceptor(JSObject::cast(*holder_)), isolate_);
257 } 257 }
258 Handle<Object> GetDataValue() const; 258 Handle<Object> GetDataValue() const;
259 void WriteDataValue(Handle<Object> value); 259 void WriteDataValue(Handle<Object> value);
260 void UpdateProtector(); 260 inline void UpdateProtector() {
261 if (FLAG_harmony_species && !IsElement() &&
262 (*name_ == heap()->constructor_string() ||
263 *name_ == heap()->species_symbol())) {
264 InternalUpdateProtector();
265 }
266 }
261 267
262 private: 268 private:
269 void InternalUpdateProtector();
270
263 enum class InterceptorState { 271 enum class InterceptorState {
264 kUninitialized, 272 kUninitialized,
265 kSkipNonMasking, 273 kSkipNonMasking,
266 kProcessNonMasking 274 kProcessNonMasking
267 }; 275 };
268 276
269 Handle<Map> GetReceiverMap() const; 277 Handle<Map> GetReceiverMap() const;
270 278
271 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); 279 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map);
272 280
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 Handle<JSReceiver> holder_; 363 Handle<JSReceiver> holder_;
356 const Handle<JSReceiver> initial_holder_; 364 const Handle<JSReceiver> initial_holder_;
357 uint32_t number_; 365 uint32_t number_;
358 }; 366 };
359 367
360 368
361 } // namespace internal 369 } // namespace internal
362 } // namespace v8 370 } // namespace v8
363 371
364 #endif // V8_LOOKUP_H_ 372 #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