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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 public: | 277 public: |
278 CallIC(Isolate* isolate, CallICNexus* nexus) | 278 CallIC(Isolate* isolate, CallICNexus* nexus) |
279 : IC(EXTRA_CALL_FRAME, isolate, nexus) { | 279 : IC(EXTRA_CALL_FRAME, isolate, nexus) { |
280 DCHECK(nexus != NULL); | 280 DCHECK(nexus != NULL); |
281 } | 281 } |
282 | 282 |
283 void HandleMiss(Handle<Object> function); | 283 void HandleMiss(Handle<Object> function); |
284 | 284 |
285 // Code generator routines. | 285 // Code generator routines. |
286 static Handle<Code> initialize_stub(Isolate* isolate, int argc, | 286 static Handle<Code> initialize_stub(Isolate* isolate, int argc, |
287 ConvertReceiverMode mode); | 287 ConvertReceiverMode mode, |
| 288 TailCallMode tail_call_mode); |
288 static Handle<Code> initialize_stub_in_optimized_code( | 289 static Handle<Code> initialize_stub_in_optimized_code( |
289 Isolate* isolate, int argc, ConvertReceiverMode mode); | 290 Isolate* isolate, int argc, ConvertReceiverMode mode, |
| 291 TailCallMode tail_call_mode); |
290 | 292 |
291 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); | 293 static void Clear(Isolate* isolate, Code* host, CallICNexus* nexus); |
292 }; | 294 }; |
293 | 295 |
294 | 296 |
295 class LoadIC : public IC { | 297 class LoadIC : public IC { |
296 public: | 298 public: |
297 static ExtraICState ComputeExtraICState(TypeofMode typeof_mode, | 299 static ExtraICState ComputeExtraICState(TypeofMode typeof_mode, |
298 LanguageMode language_mode) { | 300 LanguageMode language_mode) { |
299 return LoadICState(typeof_mode, language_mode).GetExtraICState(); | 301 return LoadICState(typeof_mode, language_mode).GetExtraICState(); |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 664 |
663 // Helper for BinaryOpIC and CompareIC. | 665 // Helper for BinaryOpIC and CompareIC. |
664 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 666 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
665 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 667 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
666 InlinedSmiCheck check); | 668 InlinedSmiCheck check); |
667 | 669 |
668 } // namespace internal | 670 } // namespace internal |
669 } // namespace v8 | 671 } // namespace v8 |
670 | 672 |
671 #endif // V8_IC_H_ | 673 #endif // V8_IC_H_ |
OLD | NEW |