| 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 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 }; | 278 }; |
| 279 | 279 |
| 280 | 280 |
| 281 class CallIC : public IC { | 281 class CallIC : public IC { |
| 282 public: | 282 public: |
| 283 CallIC(Isolate* isolate, CallICNexus* nexus) | 283 CallIC(Isolate* isolate, CallICNexus* nexus) |
| 284 : IC(EXTRA_CALL_FRAME, isolate, nexus) { | 284 : IC(EXTRA_CALL_FRAME, isolate, nexus) { |
| 285 DCHECK(nexus != NULL); | 285 DCHECK(nexus != NULL); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void PatchMegamorphic(Handle<Object> function); | |
| 289 | |
| 290 void HandleMiss(Handle<Object> function); | 288 void HandleMiss(Handle<Object> function); |
| 291 | 289 |
| 292 // Returns true if a custom handler was installed. | |
| 293 bool DoCustomHandler(Handle<Object> function, | |
| 294 const CallICState& callic_state); | |
| 295 | |
| 296 // Code generator routines. | 290 // Code generator routines. |
| 297 static Handle<Code> initialize_stub(Isolate* isolate, int argc, | 291 static Handle<Code> initialize_stub(Isolate* isolate, int argc, |
| 298 CallICState::CallType call_type); | 292 CallICState::CallType call_type); |
| 299 static Handle<Code> initialize_stub_in_optimized_code( | 293 static Handle<Code> initialize_stub_in_optimized_code( |
| 300 Isolate* isolate, int argc, CallICState::CallType call_type); | 294 Isolate* isolate, int argc, CallICState::CallType call_type); |
| 301 | 295 |
| 302 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 296 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); |
| 303 }; | 297 }; |
| 304 | 298 |
| 305 | 299 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 | 683 |
| 690 | 684 |
| 691 // Helper for BinaryOpIC and CompareIC. | 685 // Helper for BinaryOpIC and CompareIC. |
| 692 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 686 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
| 693 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 687 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
| 694 | 688 |
| 695 } | 689 } |
| 696 } // namespace v8::internal | 690 } // namespace v8::internal |
| 697 | 691 |
| 698 #endif // V8_IC_H_ | 692 #endif // V8_IC_H_ |
| OLD | NEW |