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.h

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Move helper to a runtime function Created 4 years, 1 month 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/isolate-inl.h ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 return handle(result, isolate_); 251 return handle(result, isolate_);
252 } 252 }
253 Handle<InterceptorInfo> GetInterceptorForFailedAccessCheck() const; 253 Handle<InterceptorInfo> GetInterceptorForFailedAccessCheck() const;
254 Handle<Object> GetDataValue() const; 254 Handle<Object> GetDataValue() const;
255 void WriteDataValue(Handle<Object> value); 255 void WriteDataValue(Handle<Object> value);
256 inline void UpdateProtector() { 256 inline void UpdateProtector() {
257 if (IsElement()) return; 257 if (IsElement()) return;
258 if (*name_ == heap()->is_concat_spreadable_symbol() || 258 if (*name_ == heap()->is_concat_spreadable_symbol() ||
259 *name_ == heap()->constructor_string() || 259 *name_ == heap()->constructor_string() ||
260 *name_ == heap()->species_symbol() || 260 *name_ == heap()->species_symbol() ||
261 *name_ == heap()->has_instance_symbol()) { 261 *name_ == heap()->has_instance_symbol() ||
262 *name_ == heap()->iterator_symbol() ||
263 *name_ == heap()->next_string()) {
262 InternalUpdateProtector(); 264 InternalUpdateProtector();
263 } 265 }
264 } 266 }
265 267
266 private: 268 private:
267 void InternalUpdateProtector(); 269 void InternalUpdateProtector();
268 270
269 enum class InterceptorState { 271 enum class InterceptorState {
270 kUninitialized, 272 kUninitialized,
271 kSkipNonMasking, 273 kSkipNonMasking,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 const Handle<JSReceiver> initial_holder_; 357 const Handle<JSReceiver> initial_holder_;
356 const uint32_t index_; 358 const uint32_t index_;
357 uint32_t number_; 359 uint32_t number_;
358 }; 360 };
359 361
360 362
361 } // namespace internal 363 } // namespace internal
362 } // namespace v8 364 } // namespace v8
363 365
364 #endif // V8_LOOKUP_H_ 366 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/isolate-inl.h ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698