| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |