OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 V(CmpHoleAndBranch) \ | 55 V(CmpHoleAndBranch) \ |
56 V(CmpMapAndBranch) \ | 56 V(CmpMapAndBranch) \ |
57 V(CmpT) \ | 57 V(CmpT) \ |
58 V(ConstantD) \ | 58 V(ConstantD) \ |
59 V(ConstantE) \ | 59 V(ConstantE) \ |
60 V(ConstantI) \ | 60 V(ConstantI) \ |
61 V(ConstantS) \ | 61 V(ConstantS) \ |
62 V(ConstantT) \ | 62 V(ConstantT) \ |
63 V(ConstructDouble) \ | 63 V(ConstructDouble) \ |
64 V(Context) \ | 64 V(Context) \ |
65 V(DateField) \ | |
66 V(DebugBreak) \ | 65 V(DebugBreak) \ |
67 V(DeclareGlobals) \ | 66 V(DeclareGlobals) \ |
68 V(Deoptimize) \ | 67 V(Deoptimize) \ |
69 V(DivByConstI) \ | 68 V(DivByConstI) \ |
70 V(DivByPowerOf2I) \ | 69 V(DivByPowerOf2I) \ |
71 V(DivI) \ | 70 V(DivI) \ |
72 V(DoubleToI) \ | 71 V(DoubleToI) \ |
73 V(DoubleBits) \ | 72 V(DoubleBits) \ |
74 V(DoubleToSmi) \ | 73 V(DoubleToSmi) \ |
75 V(Drop) \ | 74 V(Drop) \ |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 explicit LMapEnumLength(LOperand* value) { | 1361 explicit LMapEnumLength(LOperand* value) { |
1363 inputs_[0] = value; | 1362 inputs_[0] = value; |
1364 } | 1363 } |
1365 | 1364 |
1366 LOperand* value() { return inputs_[0]; } | 1365 LOperand* value() { return inputs_[0]; } |
1367 | 1366 |
1368 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1367 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
1369 }; | 1368 }; |
1370 | 1369 |
1371 | 1370 |
1372 class LDateField final : public LTemplateInstruction<1, 1, 1> { | |
1373 public: | |
1374 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { | |
1375 inputs_[0] = date; | |
1376 temps_[0] = temp; | |
1377 } | |
1378 | |
1379 LOperand* date() { return inputs_[0]; } | |
1380 LOperand* temp() { return temps_[0]; } | |
1381 Smi* index() const { return index_; } | |
1382 | |
1383 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | |
1384 DECLARE_HYDROGEN_ACCESSOR(DateField) | |
1385 | |
1386 private: | |
1387 Smi* index_; | |
1388 }; | |
1389 | |
1390 | |
1391 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { | 1371 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { |
1392 public: | 1372 public: |
1393 LSeqStringGetChar(LOperand* string, LOperand* index) { | 1373 LSeqStringGetChar(LOperand* string, LOperand* index) { |
1394 inputs_[0] = string; | 1374 inputs_[0] = string; |
1395 inputs_[1] = index; | 1375 inputs_[1] = index; |
1396 } | 1376 } |
1397 | 1377 |
1398 LOperand* string() const { return inputs_[0]; } | 1378 LOperand* string() const { return inputs_[0]; } |
1399 LOperand* index() const { return inputs_[1]; } | 1379 LOperand* index() const { return inputs_[1]; } |
1400 | 1380 |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2803 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2783 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2804 }; | 2784 }; |
2805 | 2785 |
2806 #undef DECLARE_HYDROGEN_ACCESSOR | 2786 #undef DECLARE_HYDROGEN_ACCESSOR |
2807 #undef DECLARE_CONCRETE_INSTRUCTION | 2787 #undef DECLARE_CONCRETE_INSTRUCTION |
2808 | 2788 |
2809 } // namespace internal | 2789 } // namespace internal |
2810 } // namespace v8 | 2790 } // namespace v8 |
2811 | 2791 |
2812 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2792 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |