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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 V(CompareNumericAndBranch) \ | 73 V(CompareNumericAndBranch) \ |
74 V(CmpObjectEqAndBranch) \ | 74 V(CmpObjectEqAndBranch) \ |
75 V(CmpHoleAndBranch) \ | 75 V(CmpHoleAndBranch) \ |
76 V(CmpMapAndBranch) \ | 76 V(CmpMapAndBranch) \ |
77 V(CmpT) \ | 77 V(CmpT) \ |
78 V(ConstantD) \ | 78 V(ConstantD) \ |
79 V(ConstantE) \ | 79 V(ConstantE) \ |
80 V(ConstantI) \ | 80 V(ConstantI) \ |
81 V(ConstantS) \ | 81 V(ConstantS) \ |
82 V(ConstantT) \ | 82 V(ConstantT) \ |
| 83 V(ConstructDouble) \ |
83 V(Context) \ | 84 V(Context) \ |
84 V(DateField) \ | 85 V(DateField) \ |
85 V(DebugBreak) \ | 86 V(DebugBreak) \ |
86 V(DeclareGlobals) \ | 87 V(DeclareGlobals) \ |
87 V(Deoptimize) \ | 88 V(Deoptimize) \ |
88 V(DivI) \ | 89 V(DivI) \ |
| 90 V(DoubleBits) \ |
89 V(DoubleToI) \ | 91 V(DoubleToI) \ |
90 V(DoubleToSmi) \ | 92 V(DoubleToSmi) \ |
91 V(Drop) \ | 93 V(Drop) \ |
92 V(Dummy) \ | 94 V(Dummy) \ |
93 V(DummyUse) \ | 95 V(DummyUse) \ |
94 V(ForInCacheArray) \ | 96 V(ForInCacheArray) \ |
95 V(ForInPrepareMap) \ | 97 V(ForInPrepareMap) \ |
96 V(FunctionLiteral) \ | 98 V(FunctionLiteral) \ |
97 V(GetCachedArrayIndex) \ | 99 V(GetCachedArrayIndex) \ |
98 V(Goto) \ | 100 V(Goto) \ |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2379 temps_[0] = temp; | 2381 temps_[0] = temp; |
2380 } | 2382 } |
2381 | 2383 |
2382 LOperand* unclamped() { return inputs_[0]; } | 2384 LOperand* unclamped() { return inputs_[0]; } |
2383 LOperand* temp() { return temps_[0]; } | 2385 LOperand* temp() { return temps_[0]; } |
2384 | 2386 |
2385 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2387 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2386 }; | 2388 }; |
2387 | 2389 |
2388 | 2390 |
| 2391 class LDoubleBits V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2392 public: |
| 2393 explicit LDoubleBits(LOperand* value) { |
| 2394 inputs_[0] = value; |
| 2395 } |
| 2396 |
| 2397 LOperand* value() { return inputs_[0]; } |
| 2398 |
| 2399 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
| 2400 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
| 2401 }; |
| 2402 |
| 2403 |
| 2404 class LConstructDouble V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 2405 public: |
| 2406 LConstructDouble(LOperand* hi, LOperand* lo) { |
| 2407 inputs_[0] = hi; |
| 2408 inputs_[1] = lo; |
| 2409 } |
| 2410 |
| 2411 LOperand* hi() { return inputs_[0]; } |
| 2412 LOperand* lo() { return inputs_[1]; } |
| 2413 |
| 2414 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") |
| 2415 }; |
| 2416 |
| 2417 |
2389 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> { | 2418 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> { |
2390 public: | 2419 public: |
2391 LAllocate(LOperand* context, | 2420 LAllocate(LOperand* context, |
2392 LOperand* size, | 2421 LOperand* size, |
2393 LOperand* temp1, | 2422 LOperand* temp1, |
2394 LOperand* temp2) { | 2423 LOperand* temp2) { |
2395 inputs_[0] = context; | 2424 inputs_[0] = context; |
2396 inputs_[1] = size; | 2425 inputs_[1] = size; |
2397 temps_[0] = temp1; | 2426 temps_[0] = temp1; |
2398 temps_[1] = temp2; | 2427 temps_[1] = temp2; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2743 | 2772 |
2744 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2773 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2745 }; | 2774 }; |
2746 | 2775 |
2747 #undef DECLARE_HYDROGEN_ACCESSOR | 2776 #undef DECLARE_HYDROGEN_ACCESSOR |
2748 #undef DECLARE_CONCRETE_INSTRUCTION | 2777 #undef DECLARE_CONCRETE_INSTRUCTION |
2749 | 2778 |
2750 } } // namespace v8::internal | 2779 } } // namespace v8::internal |
2751 | 2780 |
2752 #endif // V8_ARM_LITHIUM_ARM_H_ | 2781 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |