| 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 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 | 1857 |
| 1858 LOperand* context() { return inputs_[0]; } | 1858 LOperand* context() { return inputs_[0]; } |
| 1859 LOperand* function() { return inputs_[1]; } | 1859 LOperand* function() { return inputs_[1]; } |
| 1860 | 1860 |
| 1861 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1861 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1862 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1862 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1863 | 1863 |
| 1864 virtual void PrintDataTo(StringStream* stream); | 1864 virtual void PrintDataTo(StringStream* stream); |
| 1865 | 1865 |
| 1866 int arity() const { return hydrogen()->argument_count() - 1; } | 1866 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1867 Handle<JSFunction> known_function() { return hydrogen()->known_function(); } | |
| 1868 }; | 1867 }; |
| 1869 | 1868 |
| 1870 | 1869 |
| 1871 class LCallKeyed: public LTemplateInstruction<1, 2, 0> { | 1870 class LCallKeyed: public LTemplateInstruction<1, 2, 0> { |
| 1872 public: | 1871 public: |
| 1873 LCallKeyed(LOperand* context, LOperand* key) { | 1872 LCallKeyed(LOperand* context, LOperand* key) { |
| 1874 inputs_[0] = context; | 1873 inputs_[0] = context; |
| 1875 inputs_[1] = key; | 1874 inputs_[1] = key; |
| 1876 } | 1875 } |
| 1877 | 1876 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1940 }; | 1939 }; |
| 1941 | 1940 |
| 1942 | 1941 |
| 1943 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> { | 1942 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> { |
| 1944 public: | 1943 public: |
| 1945 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") | 1944 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") |
| 1946 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) | 1945 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) |
| 1947 | 1946 |
| 1948 virtual void PrintDataTo(StringStream* stream); | 1947 virtual void PrintDataTo(StringStream* stream); |
| 1949 | 1948 |
| 1950 Handle<JSFunction> target() const { return hydrogen()->target(); } | |
| 1951 int arity() const { return hydrogen()->argument_count() - 1; } | 1949 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1952 }; | 1950 }; |
| 1953 | 1951 |
| 1954 | 1952 |
| 1955 class LCallNew: public LTemplateInstruction<1, 2, 0> { | 1953 class LCallNew: public LTemplateInstruction<1, 2, 0> { |
| 1956 public: | 1954 public: |
| 1957 LCallNew(LOperand* context, LOperand* constructor) { | 1955 LCallNew(LOperand* context, LOperand* constructor) { |
| 1958 inputs_[0] = context; | 1956 inputs_[0] = context; |
| 1959 inputs_[1] = constructor; | 1957 inputs_[1] = constructor; |
| 1960 } | 1958 } |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 class LFunctionLiteral: public LTemplateInstruction<1, 1, 0> { | 2606 class LFunctionLiteral: public LTemplateInstruction<1, 1, 0> { |
| 2609 public: | 2607 public: |
| 2610 explicit LFunctionLiteral(LOperand* context) { | 2608 explicit LFunctionLiteral(LOperand* context) { |
| 2611 inputs_[0] = context; | 2609 inputs_[0] = context; |
| 2612 } | 2610 } |
| 2613 | 2611 |
| 2614 LOperand* context() { return inputs_[0]; } | 2612 LOperand* context() { return inputs_[0]; } |
| 2615 | 2613 |
| 2616 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | 2614 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") |
| 2617 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | 2615 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) |
| 2618 | |
| 2619 Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); } | |
| 2620 }; | 2616 }; |
| 2621 | 2617 |
| 2622 | 2618 |
| 2623 class LToFastProperties: public LTemplateInstruction<1, 1, 0> { | 2619 class LToFastProperties: public LTemplateInstruction<1, 1, 0> { |
| 2624 public: | 2620 public: |
| 2625 explicit LToFastProperties(LOperand* value) { | 2621 explicit LToFastProperties(LOperand* value) { |
| 2626 inputs_[0] = value; | 2622 inputs_[0] = value; |
| 2627 } | 2623 } |
| 2628 | 2624 |
| 2629 LOperand* value() { return inputs_[0]; } | 2625 LOperand* value() { return inputs_[0]; } |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2987 | 2983 |
| 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2984 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2989 }; | 2985 }; |
| 2990 | 2986 |
| 2991 #undef DECLARE_HYDROGEN_ACCESSOR | 2987 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2992 #undef DECLARE_CONCRETE_INSTRUCTION | 2988 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2993 | 2989 |
| 2994 } } // namespace v8::internal | 2990 } } // namespace v8::internal |
| 2995 | 2991 |
| 2996 #endif // V8_IA32_LITHIUM_IA32_H_ | 2992 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |