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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 469 } |
470 | 470 |
471 LOperand* context() { return inputs_[0]; } | 471 LOperand* context() { return inputs_[0]; } |
472 | 472 |
473 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 473 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
474 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 474 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
475 }; | 475 }; |
476 | 476 |
477 | 477 |
478 class LTailCallThroughMegamorphicCache FINAL | 478 class LTailCallThroughMegamorphicCache FINAL |
479 : public LTemplateInstruction<0, 3, 0> { | 479 : public LTemplateInstruction<0, 5, 0> { |
480 public: | 480 public: |
481 explicit LTailCallThroughMegamorphicCache(LOperand* context, | 481 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, |
482 LOperand* receiver, | 482 LOperand* name, LOperand* slot, |
483 LOperand* name) { | 483 LOperand* vector) { |
484 inputs_[0] = context; | 484 inputs_[0] = context; |
485 inputs_[1] = receiver; | 485 inputs_[1] = receiver; |
486 inputs_[2] = name; | 486 inputs_[2] = name; |
| 487 inputs_[3] = slot; |
| 488 inputs_[4] = vector; |
487 } | 489 } |
488 | 490 |
489 LOperand* context() { return inputs_[0]; } | 491 LOperand* context() { return inputs_[0]; } |
490 LOperand* receiver() { return inputs_[1]; } | 492 LOperand* receiver() { return inputs_[1]; } |
491 LOperand* name() { return inputs_[2]; } | 493 LOperand* name() { return inputs_[2]; } |
| 494 LOperand* slot() { return inputs_[3]; } |
| 495 LOperand* vector() { return inputs_[4]; } |
492 | 496 |
493 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | 497 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, |
494 "tail-call-through-megamorphic-cache") | 498 "tail-call-through-megamorphic-cache") |
495 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | 499 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) |
496 }; | 500 }; |
497 | 501 |
| 502 |
498 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { | 503 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { |
499 public: | 504 public: |
500 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } | 505 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } |
501 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 506 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
502 }; | 507 }; |
503 | 508 |
504 | 509 |
505 template<int I, int T> | 510 template<int I, int T> |
506 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 511 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
507 public: | 512 public: |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 : descriptor_(descriptor), | 1891 : descriptor_(descriptor), |
1887 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { | 1892 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { |
1888 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); | 1893 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); |
1889 inputs_.AddAll(operands, zone); | 1894 inputs_.AddAll(operands, zone); |
1890 } | 1895 } |
1891 | 1896 |
1892 LOperand* target() const { return inputs_[0]; } | 1897 LOperand* target() const { return inputs_[0]; } |
1893 | 1898 |
1894 const CallInterfaceDescriptor descriptor() { return descriptor_; } | 1899 const CallInterfaceDescriptor descriptor() { return descriptor_; } |
1895 | 1900 |
| 1901 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
| 1902 |
1896 private: | 1903 private: |
1897 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1904 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1898 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | |
1899 | 1905 |
1900 void PrintDataTo(StringStream* stream) OVERRIDE; | 1906 void PrintDataTo(StringStream* stream) OVERRIDE; |
1901 | 1907 |
1902 int arity() const { return hydrogen()->argument_count() - 1; } | 1908 int arity() const { return hydrogen()->argument_count() - 1; } |
1903 | 1909 |
1904 CallInterfaceDescriptor descriptor_; | 1910 CallInterfaceDescriptor descriptor_; |
1905 ZoneList<LOperand*> inputs_; | 1911 ZoneList<LOperand*> inputs_; |
1906 | 1912 |
1907 // Iterator support. | 1913 // Iterator support. |
1908 int InputCount() FINAL { return inputs_.length(); } | 1914 int InputCount() FINAL { return inputs_.length(); } |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 | 2879 |
2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2875 }; | 2881 }; |
2876 | 2882 |
2877 #undef DECLARE_HYDROGEN_ACCESSOR | 2883 #undef DECLARE_HYDROGEN_ACCESSOR |
2878 #undef DECLARE_CONCRETE_INSTRUCTION | 2884 #undef DECLARE_CONCRETE_INSTRUCTION |
2879 | 2885 |
2880 } } // namespace v8::internal | 2886 } } // namespace v8::internal |
2881 | 2887 |
2882 #endif // V8_ARM_LITHIUM_ARM_H_ | 2888 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |