OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 V(MultiplySubD) \ | 123 V(MultiplySubD) \ |
124 V(NumberTagD) \ | 124 V(NumberTagD) \ |
125 V(NumberTagI) \ | 125 V(NumberTagI) \ |
126 V(NumberTagU) \ | 126 V(NumberTagU) \ |
127 V(NumberUntagD) \ | 127 V(NumberUntagD) \ |
128 V(OsrEntry) \ | 128 V(OsrEntry) \ |
129 V(Parameter) \ | 129 V(Parameter) \ |
130 V(Power) \ | 130 V(Power) \ |
131 V(Prologue) \ | 131 V(Prologue) \ |
132 V(PushArgument) \ | 132 V(PushArgument) \ |
133 V(RegExpLiteral) \ | |
134 V(Return) \ | 133 V(Return) \ |
135 V(SeqStringGetChar) \ | 134 V(SeqStringGetChar) \ |
136 V(SeqStringSetChar) \ | 135 V(SeqStringSetChar) \ |
137 V(ShiftI) \ | 136 V(ShiftI) \ |
138 V(SmiTag) \ | 137 V(SmiTag) \ |
139 V(SmiUntag) \ | 138 V(SmiUntag) \ |
140 V(StackCheck) \ | 139 V(StackCheck) \ |
141 V(StoreCodeEntry) \ | 140 V(StoreCodeEntry) \ |
142 V(StoreContextSlot) \ | 141 V(StoreContextSlot) \ |
143 V(StoreFrameContext) \ | 142 V(StoreFrameContext) \ |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2381 LOperand* context() { return inputs_[0]; } | 2380 LOperand* context() { return inputs_[0]; } |
2382 LOperand* size() { return inputs_[1]; } | 2381 LOperand* size() { return inputs_[1]; } |
2383 LOperand* temp1() { return temps_[0]; } | 2382 LOperand* temp1() { return temps_[0]; } |
2384 LOperand* temp2() { return temps_[1]; } | 2383 LOperand* temp2() { return temps_[1]; } |
2385 | 2384 |
2386 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2385 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2387 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2386 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2388 }; | 2387 }; |
2389 | 2388 |
2390 | 2389 |
2391 class LRegExpLiteral final : public LTemplateInstruction<1, 1, 0> { | |
2392 public: | |
2393 explicit LRegExpLiteral(LOperand* context) { inputs_[0] = context; } | |
2394 | |
2395 LOperand* context() { return inputs_[0]; } | |
2396 | |
2397 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | |
2398 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | |
2399 }; | |
2400 | |
2401 | |
2402 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | 2390 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { |
2403 public: | 2391 public: |
2404 explicit LToFastProperties(LOperand* value) { inputs_[0] = value; } | 2392 explicit LToFastProperties(LOperand* value) { inputs_[0] = value; } |
2405 | 2393 |
2406 LOperand* value() { return inputs_[0]; } | 2394 LOperand* value() { return inputs_[0]; } |
2407 | 2395 |
2408 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | 2396 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") |
2409 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | 2397 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) |
2410 }; | 2398 }; |
2411 | 2399 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 | 2685 |
2698 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2686 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2699 }; | 2687 }; |
2700 | 2688 |
2701 #undef DECLARE_HYDROGEN_ACCESSOR | 2689 #undef DECLARE_HYDROGEN_ACCESSOR |
2702 #undef DECLARE_CONCRETE_INSTRUCTION | 2690 #undef DECLARE_CONCRETE_INSTRUCTION |
2703 } // namespace internal | 2691 } // namespace internal |
2704 } // namespace v8 | 2692 } // namespace v8 |
2705 | 2693 |
2706 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2694 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |