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(CheckNonSmi) \ | 65 V(CheckNonSmi) \ |
67 V(CheckMaps) \ | 66 V(CheckMaps) \ |
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 LOperand* context() { return inputs_[0]; } | 1912 LOperand* context() { return inputs_[0]; } |
1914 LOperand* function() { return inputs_[1]; } | 1913 LOperand* function() { return inputs_[1]; } |
1915 | 1914 |
1916 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1915 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1917 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1916 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1918 | 1917 |
1919 int arity() const { return hydrogen()->argument_count() - 1; } | 1918 int arity() const { return hydrogen()->argument_count() - 1; } |
1920 }; | 1919 }; |
1921 | 1920 |
1922 | 1921 |
1923 class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
1924 public: | |
1925 explicit LCallGlobal(LOperand* context) { | |
1926 inputs_[0] = context; | |
1927 } | |
1928 | |
1929 LOperand* context() { return inputs_[0]; } | |
1930 | |
1931 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | |
1932 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) | |
1933 | |
1934 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | |
1935 | |
1936 Handle<String> name() const {return hydrogen()->name(); } | |
1937 int arity() const { return hydrogen()->argument_count() - 1; } | |
1938 }; | |
1939 | |
1940 | |
1941 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 1922 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
1942 public: | 1923 public: |
1943 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") | 1924 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") |
1944 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) | 1925 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) |
1945 | 1926 |
1946 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1927 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1947 | 1928 |
1948 int arity() const { return hydrogen()->argument_count() - 1; } | 1929 int arity() const { return hydrogen()->argument_count() - 1; } |
1949 }; | 1930 }; |
1950 | 1931 |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 | 2840 |
2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2841 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2861 }; | 2842 }; |
2862 | 2843 |
2863 #undef DECLARE_HYDROGEN_ACCESSOR | 2844 #undef DECLARE_HYDROGEN_ACCESSOR |
2864 #undef DECLARE_CONCRETE_INSTRUCTION | 2845 #undef DECLARE_CONCRETE_INSTRUCTION |
2865 | 2846 |
2866 } } // namespace v8::internal | 2847 } } // namespace v8::internal |
2867 | 2848 |
2868 #endif // V8_ARM_LITHIUM_ARM_H_ | 2849 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |