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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 void HandleMiss(Handle<Object> receiver, Handle<Object> function); | 349 void HandleMiss(Handle<Object> receiver, Handle<Object> function); |
350 | 350 |
351 // Returns true if a custom handler was installed. | 351 // Returns true if a custom handler was installed. |
352 bool DoCustomHandler(Handle<Object> receiver, Handle<Object> function, | 352 bool DoCustomHandler(Handle<Object> receiver, Handle<Object> function, |
353 const CallICState& callic_state); | 353 const CallICState& callic_state); |
354 | 354 |
355 // Code generator routines. | 355 // Code generator routines. |
356 static Handle<Code> initialize_stub(Isolate* isolate, int argc, | 356 static Handle<Code> initialize_stub(Isolate* isolate, int argc, |
357 CallICState::CallType call_type); | 357 CallICState::CallType call_type); |
| 358 static Handle<Code> initialize_stub_in_optimized_code( |
| 359 Isolate* isolate, int argc, CallICState::CallType call_type); |
358 | 360 |
359 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 361 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); |
360 }; | 362 }; |
361 | 363 |
362 | 364 |
363 class LoadIC : public IC { | 365 class LoadIC : public IC { |
364 public: | 366 public: |
365 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { | 367 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { |
366 return LoadICState(contextual_mode).GetExtraICState(); | 368 return LoadICState(contextual_mode).GetExtraICState(); |
367 } | 369 } |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 | 766 |
765 // Support functions for interceptor handlers. | 767 // Support functions for interceptor handlers. |
766 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
767 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
768 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
769 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
770 } | 772 } |
771 } // namespace v8::internal | 773 } // namespace v8::internal |
772 | 774 |
773 #endif // V8_IC_H_ | 775 #endif // V8_IC_H_ |
OLD | NEW |