| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 341 | 341 | 
| 342 class CallIC : public IC { | 342 class CallIC : public IC { | 
| 343  public: | 343  public: | 
| 344   CallIC(Isolate* isolate, CallICNexus* nexus) | 344   CallIC(Isolate* isolate, CallICNexus* nexus) | 
| 345       : IC(EXTRA_CALL_FRAME, isolate, nexus) { | 345       : IC(EXTRA_CALL_FRAME, isolate, nexus) { | 
| 346     DCHECK(nexus != NULL); | 346     DCHECK(nexus != NULL); | 
| 347   } | 347   } | 
| 348 | 348 | 
| 349   void PatchMegamorphic(Handle<Object> function); | 349   void PatchMegamorphic(Handle<Object> function); | 
| 350 | 350 | 
| 351   void HandleMiss(Handle<Object> receiver, 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> receiver, 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   static Handle<Code> initialize_stub_in_optimized_code( | 360   static Handle<Code> initialize_stub_in_optimized_code( | 
| 361       Isolate* isolate, int argc, CallICState::CallType call_type); | 361       Isolate* isolate, int argc, CallICState::CallType call_type); | 
| 362 | 362 | 
| 363   static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 363   static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 
| 364 }; | 364 }; | 
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 770 | 770 | 
| 771 // Support functions for interceptor handlers. | 771 // Support functions for interceptor handlers. | 
| 772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 772 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 
| 773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 773 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 
| 774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 774 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 
| 775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 775 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 
| 776 } | 776 } | 
| 777 }  // namespace v8::internal | 777 }  // namespace v8::internal | 
| 778 | 778 | 
| 779 #endif  // V8_IC_H_ | 779 #endif  // V8_IC_H_ | 
| OLD | NEW | 
|---|