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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 466 } |
467 | 467 |
468 LOperand* context() { return inputs_[0]; } | 468 LOperand* context() { return inputs_[0]; } |
469 | 469 |
470 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 470 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
471 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 471 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
472 }; | 472 }; |
473 | 473 |
474 | 474 |
475 class LTailCallThroughMegamorphicCache FINAL | 475 class LTailCallThroughMegamorphicCache FINAL |
476 : public LTemplateInstruction<0, 3, 0> { | 476 : public LTemplateInstruction<0, 5, 0> { |
477 public: | 477 public: |
478 explicit LTailCallThroughMegamorphicCache(LOperand* context, | 478 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, |
479 LOperand* receiver, | 479 LOperand* name, LOperand* slot, |
480 LOperand* name) { | 480 LOperand* vector) { |
481 inputs_[0] = context; | 481 inputs_[0] = context; |
482 inputs_[1] = receiver; | 482 inputs_[1] = receiver; |
483 inputs_[2] = name; | 483 inputs_[2] = name; |
| 484 inputs_[3] = slot; |
| 485 inputs_[4] = vector; |
484 } | 486 } |
485 | 487 |
486 LOperand* context() { return inputs_[0]; } | 488 LOperand* context() { return inputs_[0]; } |
487 LOperand* receiver() { return inputs_[1]; } | 489 LOperand* receiver() { return inputs_[1]; } |
488 LOperand* name() { return inputs_[2]; } | 490 LOperand* name() { return inputs_[2]; } |
| 491 LOperand* slot() { return inputs_[3]; } |
| 492 LOperand* vector() { return inputs_[4]; } |
489 | 493 |
490 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | 494 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, |
491 "tail-call-through-megamorphic-cache") | 495 "tail-call-through-megamorphic-cache") |
492 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | 496 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) |
493 }; | 497 }; |
494 | 498 |
495 | 499 |
496 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { | 500 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { |
497 public: | 501 public: |
498 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } | 502 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } |
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 : descriptor_(descriptor), | 1854 : descriptor_(descriptor), |
1851 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { | 1855 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { |
1852 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); | 1856 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); |
1853 inputs_.AddAll(operands, zone); | 1857 inputs_.AddAll(operands, zone); |
1854 } | 1858 } |
1855 | 1859 |
1856 LOperand* target() const { return inputs_[0]; } | 1860 LOperand* target() const { return inputs_[0]; } |
1857 | 1861 |
1858 const CallInterfaceDescriptor descriptor() { return descriptor_; } | 1862 const CallInterfaceDescriptor descriptor() { return descriptor_; } |
1859 | 1863 |
| 1864 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
| 1865 |
1860 private: | 1866 private: |
1861 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1867 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1862 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | |
1863 | 1868 |
1864 void PrintDataTo(StringStream* stream) OVERRIDE; | 1869 void PrintDataTo(StringStream* stream) OVERRIDE; |
1865 | 1870 |
1866 int arity() const { return hydrogen()->argument_count() - 1; } | 1871 int arity() const { return hydrogen()->argument_count() - 1; } |
1867 | 1872 |
1868 CallInterfaceDescriptor descriptor_; | 1873 CallInterfaceDescriptor descriptor_; |
1869 ZoneList<LOperand*> inputs_; | 1874 ZoneList<LOperand*> inputs_; |
1870 | 1875 |
1871 // Iterator support. | 1876 // Iterator support. |
1872 int InputCount() FINAL { return inputs_.length(); } | 1877 int InputCount() FINAL { return inputs_.length(); } |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2832 | 2837 |
2833 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2838 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2834 }; | 2839 }; |
2835 | 2840 |
2836 #undef DECLARE_HYDROGEN_ACCESSOR | 2841 #undef DECLARE_HYDROGEN_ACCESSOR |
2837 #undef DECLARE_CONCRETE_INSTRUCTION | 2842 #undef DECLARE_CONCRETE_INSTRUCTION |
2838 | 2843 |
2839 } } // namespace v8::internal | 2844 } } // namespace v8::internal |
2840 | 2845 |
2841 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2846 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |