| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 V(ApplyArguments) \ | 47 V(ApplyArguments) \ |
| 48 V(ArgumentsElements) \ | 48 V(ArgumentsElements) \ |
| 49 V(ArgumentsLength) \ | 49 V(ArgumentsLength) \ |
| 50 V(ArithmeticD) \ | 50 V(ArithmeticD) \ |
| 51 V(ArithmeticT) \ | 51 V(ArithmeticT) \ |
| 52 V(BitI) \ | 52 V(BitI) \ |
| 53 V(BoundsCheck) \ | 53 V(BoundsCheck) \ |
| 54 V(Branch) \ | 54 V(Branch) \ |
| 55 V(CallConstantFunction) \ | 55 V(CallConstantFunction) \ |
| 56 V(CallFunction) \ | 56 V(CallFunction) \ |
| 57 V(CallGlobal) \ | |
| 58 V(CallKeyed) \ | 57 V(CallKeyed) \ |
| 59 V(CallKnownGlobal) \ | 58 V(CallKnownGlobal) \ |
| 60 V(CallNamed) \ | 59 V(CallNamed) \ |
| 61 V(CallNew) \ | 60 V(CallNew) \ |
| 62 V(CallNewArray) \ | 61 V(CallNewArray) \ |
| 63 V(CallRuntime) \ | 62 V(CallRuntime) \ |
| 64 V(CallStub) \ | 63 V(CallStub) \ |
| 65 V(CheckInstanceType) \ | 64 V(CheckInstanceType) \ |
| 66 V(CheckMaps) \ | 65 V(CheckMaps) \ |
| 67 V(CheckMapValue) \ | 66 V(CheckMapValue) \ |
| (...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1893 LOperand* context() { return inputs_[0]; } | 1892 LOperand* context() { return inputs_[0]; } |
| 1894 LOperand* function() { return inputs_[1]; } | 1893 LOperand* function() { return inputs_[1]; } |
| 1895 | 1894 |
| 1896 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1895 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1897 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1896 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1898 | 1897 |
| 1899 int arity() const { return hydrogen()->argument_count() - 1; } | 1898 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1900 }; | 1899 }; |
| 1901 | 1900 |
| 1902 | 1901 |
| 1903 class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
| 1904 public: | |
| 1905 explicit LCallGlobal(LOperand* context) { | |
| 1906 inputs_[0] = context; | |
| 1907 } | |
| 1908 | |
| 1909 LOperand* context() { return inputs_[0]; } | |
| 1910 | |
| 1911 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | |
| 1912 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) | |
| 1913 | |
| 1914 virtual void PrintDataTo(StringStream* stream); | |
| 1915 | |
| 1916 Handle<String> name() const {return hydrogen()->name(); } | |
| 1917 int arity() const { return hydrogen()->argument_count() - 1; } | |
| 1918 }; | |
| 1919 | |
| 1920 | |
| 1921 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 1902 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1922 public: | 1903 public: |
| 1923 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") | 1904 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") |
| 1924 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) | 1905 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) |
| 1925 | 1906 |
| 1926 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1907 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1927 | 1908 |
| 1928 int arity() const { return hydrogen()->argument_count() - 1; } | 1909 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1929 }; | 1910 }; |
| 1930 | 1911 |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2834 | 2815 |
| 2835 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2816 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2836 }; | 2817 }; |
| 2837 | 2818 |
| 2838 #undef DECLARE_HYDROGEN_ACCESSOR | 2819 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2839 #undef DECLARE_CONCRETE_INSTRUCTION | 2820 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2840 | 2821 |
| 2841 } } // namespace v8::internal | 2822 } } // namespace v8::internal |
| 2842 | 2823 |
| 2843 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2824 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |