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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(ConstantI) \ | 85 V(ConstantI) \ |
86 V(ConstantT) \ | 86 V(ConstantT) \ |
87 V(Context) \ | 87 V(Context) \ |
88 V(DeclareGlobals) \ | 88 V(DeclareGlobals) \ |
89 V(DeleteProperty) \ | 89 V(DeleteProperty) \ |
90 V(Deoptimize) \ | 90 V(Deoptimize) \ |
91 V(DivI) \ | 91 V(DivI) \ |
92 V(DoubleToI) \ | 92 V(DoubleToI) \ |
93 V(DummyUse) \ | 93 V(DummyUse) \ |
94 V(ElementsKind) \ | 94 V(ElementsKind) \ |
95 V(FastLiteral) \ | |
96 V(FixedArrayBaseLength) \ | 95 V(FixedArrayBaseLength) \ |
97 V(FunctionLiteral) \ | 96 V(FunctionLiteral) \ |
98 V(GetCachedArrayIndex) \ | 97 V(GetCachedArrayIndex) \ |
99 V(GlobalObject) \ | 98 V(GlobalObject) \ |
100 V(GlobalReceiver) \ | 99 V(GlobalReceiver) \ |
101 V(Goto) \ | 100 V(Goto) \ |
102 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
103 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
104 V(In) \ | 103 V(In) \ |
105 V(InstanceOf) \ | 104 V(InstanceOf) \ |
(...skipping 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2479 | 2478 |
2480 LOperand* context() { return inputs_[0]; } | 2479 LOperand* context() { return inputs_[0]; } |
2481 LOperand* size() { return inputs_[1]; } | 2480 LOperand* size() { return inputs_[1]; } |
2482 LOperand* temp() { return temps_[0]; } | 2481 LOperand* temp() { return temps_[0]; } |
2483 | 2482 |
2484 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2483 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2485 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2484 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2486 }; | 2485 }; |
2487 | 2486 |
2488 | 2487 |
2489 class LFastLiteral: public LTemplateInstruction<1, 1, 0> { | |
2490 public: | |
2491 explicit LFastLiteral(LOperand* context) { | |
2492 inputs_[0] = context; | |
2493 } | |
2494 | |
2495 LOperand* context() { return inputs_[0]; } | |
2496 | |
2497 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") | |
2498 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) | |
2499 }; | |
2500 | |
2501 | |
2502 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { | 2488 class LArrayLiteral: public LTemplateInstruction<1, 1, 0> { |
2503 public: | 2489 public: |
2504 explicit LArrayLiteral(LOperand* context) { | 2490 explicit LArrayLiteral(LOperand* context) { |
2505 inputs_[0] = context; | 2491 inputs_[0] = context; |
2506 } | 2492 } |
2507 | 2493 |
2508 LOperand* context() { return inputs_[0]; } | 2494 LOperand* context() { return inputs_[0]; } |
2509 | 2495 |
2510 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 2496 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
2511 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) | 2497 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 | 2894 |
2909 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2895 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2910 }; | 2896 }; |
2911 | 2897 |
2912 #undef DECLARE_HYDROGEN_ACCESSOR | 2898 #undef DECLARE_HYDROGEN_ACCESSOR |
2913 #undef DECLARE_CONCRETE_INSTRUCTION | 2899 #undef DECLARE_CONCRETE_INSTRUCTION |
2914 | 2900 |
2915 } } // namespace v8::internal | 2901 } } // namespace v8::internal |
2916 | 2902 |
2917 #endif // V8_IA32_LITHIUM_IA32_H_ | 2903 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |