| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 class CallIC : public IC { | 279 class CallIC : public IC { |
| 280 public: | 280 public: |
| 281 CallIC(Isolate* isolate, CallICNexus* nexus) | 281 CallIC(Isolate* isolate, CallICNexus* nexus) |
| 282 : IC(EXTRA_CALL_FRAME, isolate, nexus) { | 282 : IC(EXTRA_CALL_FRAME, isolate, nexus) { |
| 283 DCHECK(nexus != NULL); | 283 DCHECK(nexus != NULL); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void HandleMiss(Handle<Object> function); | 286 void HandleMiss(Handle<Object> function); |
| 287 | 287 |
| 288 // Code generator routines. | 288 // Code generator routines. |
| 289 static Handle<Code> initialize_stub(Isolate* isolate, int argc); | 289 static Handle<Code> initialize_stub(Isolate* isolate, int argc, |
| 290 static Handle<Code> initialize_stub_in_optimized_code(Isolate* isolate, | 290 ConvertReceiverMode mode); |
| 291 int argc); | 291 static Handle<Code> initialize_stub_in_optimized_code( |
| 292 Isolate* isolate, int argc, ConvertReceiverMode mode); |
| 292 | 293 |
| 293 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 294 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); |
| 294 }; | 295 }; |
| 295 | 296 |
| 296 | 297 |
| 297 class LoadIC : public IC { | 298 class LoadIC : public IC { |
| 298 public: | 299 public: |
| 299 static ExtraICState ComputeExtraICState(TypeofMode typeof_mode, | 300 static ExtraICState ComputeExtraICState(TypeofMode typeof_mode, |
| 300 LanguageMode language_mode) { | 301 LanguageMode language_mode) { |
| 301 return LoadICState(typeof_mode, language_mode).GetExtraICState(); | 302 return LoadICState(typeof_mode, language_mode).GetExtraICState(); |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 | 678 |
| 678 | 679 |
| 679 // Helper for BinaryOpIC and CompareIC. | 680 // Helper for BinaryOpIC and CompareIC. |
| 680 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 681 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
| 681 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 682 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
| 682 | 683 |
| 683 } // namespace internal | 684 } // namespace internal |
| 684 } // namespace v8 | 685 } // namespace v8 |
| 685 | 686 |
| 686 #endif // V8_IC_H_ | 687 #endif // V8_IC_H_ |
| OLD | NEW |