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

Side by Side Diff: src/ic/ic.h

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Flag calls as spread calls in parser, error on spread intrinsics/construct calls Created 5 years, 10 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 void PatchMegamorphic(Handle<Object> function); 349 void PatchMegamorphic(Handle<Object> function);
350 350
351 void HandleMiss(Handle<Object> function); 351 void HandleMiss(Handle<Object> function);
352 352
353 // Returns true if a custom handler was installed. 353 // Returns true if a custom handler was installed.
354 bool DoCustomHandler(Handle<Object> function, 354 bool DoCustomHandler(Handle<Object> function,
355 const CallICState& callic_state); 355 const CallICState& callic_state);
356 356
357 // Code generator routines. 357 // Code generator routines.
358 static Handle<Code> initialize_stub(Isolate* isolate, int argc, 358 static Handle<Code> initialize_stub(Isolate* isolate, int argc,
359 CallICState::CallType call_type); 359 CallICState::CallType call_type,
360 bool is_spread = false);
360 static Handle<Code> initialize_stub_in_optimized_code( 361 static Handle<Code> initialize_stub_in_optimized_code(
361 Isolate* isolate, int argc, CallICState::CallType call_type); 362 Isolate* isolate, int argc, CallICState::CallType call_type);
362 363
363 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); 364 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus);
364 }; 365 };
365 366
366 367
367 class LoadIC : public IC { 368 class LoadIC : public IC {
368 public: 369 public:
369 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { 370 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 773
773 // Support functions for interceptor handlers. 774 // Support functions for interceptor handlers.
774 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 775 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
775 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 776 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
776 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 777 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
777 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 778 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
778 } 779 }
779 } // namespace v8::internal 780 } // namespace v8::internal
780 781
781 #endif // V8_IC_H_ 782 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698