| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 V(InstanceOf) \ | 106 V(InstanceOf) \ |
| 107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
| 108 V(InstanceSize) \ | 108 V(InstanceSize) \ |
| 109 V(InstructionGap) \ | 109 V(InstructionGap) \ |
| 110 V(Integer32ToDouble) \ | 110 V(Integer32ToDouble) \ |
| 111 V(Integer32ToSmi) \ | 111 V(Integer32ToSmi) \ |
| 112 V(InvokeFunction) \ | 112 V(InvokeFunction) \ |
| 113 V(IsConstructCallAndBranch) \ | 113 V(IsConstructCallAndBranch) \ |
| 114 V(IsObjectAndBranch) \ | 114 V(IsObjectAndBranch) \ |
| 115 V(IsStringAndBranch) \ | 115 V(IsStringAndBranch) \ |
| 116 V(IsNumberAndBranch) \ | |
| 117 V(IsSmiAndBranch) \ | 116 V(IsSmiAndBranch) \ |
| 118 V(IsUndetectableAndBranch) \ | 117 V(IsUndetectableAndBranch) \ |
| 119 V(Label) \ | 118 V(Label) \ |
| 120 V(LazyBailout) \ | 119 V(LazyBailout) \ |
| 121 V(LoadContextSlot) \ | 120 V(LoadContextSlot) \ |
| 122 V(LoadExternalArrayPointer) \ | 121 V(LoadExternalArrayPointer) \ |
| 122 V(LoadRoot) \ |
| 123 V(LoadFieldByIndex) \ | 123 V(LoadFieldByIndex) \ |
| 124 V(LoadFunctionPrototype) \ | 124 V(LoadFunctionPrototype) \ |
| 125 V(LoadGlobalCell) \ | 125 V(LoadGlobalCell) \ |
| 126 V(LoadGlobalGeneric) \ | 126 V(LoadGlobalGeneric) \ |
| 127 V(LoadKeyed) \ | 127 V(LoadKeyed) \ |
| 128 V(LoadKeyedGeneric) \ | 128 V(LoadKeyedGeneric) \ |
| 129 V(LoadNamedField) \ | 129 V(LoadNamedField) \ |
| 130 V(LoadNamedGeneric) \ | 130 V(LoadNamedGeneric) \ |
| 131 V(MapEnumLength) \ | 131 V(MapEnumLength) \ |
| 132 V(MathAbs) \ | 132 V(MathAbs) \ |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 LOperand* value() { return inputs_[0]; } | 929 LOperand* value() { return inputs_[0]; } |
| 930 LOperand* temp() { return temps_[0]; } | 930 LOperand* temp() { return temps_[0]; } |
| 931 | 931 |
| 932 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 932 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 933 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 933 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
| 934 | 934 |
| 935 virtual void PrintDataTo(StringStream* stream); | 935 virtual void PrintDataTo(StringStream* stream); |
| 936 }; | 936 }; |
| 937 | 937 |
| 938 | 938 |
| 939 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { | |
| 940 public: | |
| 941 explicit LIsNumberAndBranch(LOperand* value) { | |
| 942 inputs_[0] = value; | |
| 943 } | |
| 944 | |
| 945 LOperand* value() { return inputs_[0]; } | |
| 946 | |
| 947 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") | |
| 948 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) | |
| 949 }; | |
| 950 | |
| 951 | |
| 952 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { | 939 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
| 953 public: | 940 public: |
| 954 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 941 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 955 inputs_[0] = value; | 942 inputs_[0] = value; |
| 956 temps_[0] = temp; | 943 temps_[0] = temp; |
| 957 } | 944 } |
| 958 | 945 |
| 959 LOperand* value() { return inputs_[0]; } | 946 LOperand* value() { return inputs_[0]; } |
| 960 LOperand* temp() { return temps_[0]; } | 947 LOperand* temp() { return temps_[0]; } |
| 961 | 948 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 inputs_[0] = value; | 1280 inputs_[0] = value; |
| 1294 temps_[0] = temp; | 1281 temps_[0] = temp; |
| 1295 } | 1282 } |
| 1296 | 1283 |
| 1297 LOperand* value() { return inputs_[0]; } | 1284 LOperand* value() { return inputs_[0]; } |
| 1298 LOperand* temp() { return temps_[0]; } | 1285 LOperand* temp() { return temps_[0]; } |
| 1299 | 1286 |
| 1300 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") | 1287 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") |
| 1301 DECLARE_HYDROGEN_ACCESSOR(CompareMap) | 1288 DECLARE_HYDROGEN_ACCESSOR(CompareMap) |
| 1302 | 1289 |
| 1303 Handle<Map> map() const { return hydrogen()->map(); } | 1290 Handle<Map> map() const { return hydrogen()->map().handle(); } |
| 1304 }; | 1291 }; |
| 1305 | 1292 |
| 1306 | 1293 |
| 1307 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1294 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1308 public: | 1295 public: |
| 1309 explicit LMapEnumLength(LOperand* value) { | 1296 explicit LMapEnumLength(LOperand* value) { |
| 1310 inputs_[0] = value; | 1297 inputs_[0] = value; |
| 1311 } | 1298 } |
| 1312 | 1299 |
| 1313 LOperand* value() { return inputs_[0]; } | 1300 LOperand* value() { return inputs_[0]; } |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 inputs_[0] = function; | 1553 inputs_[0] = function; |
| 1567 } | 1554 } |
| 1568 | 1555 |
| 1569 LOperand* function() { return inputs_[0]; } | 1556 LOperand* function() { return inputs_[0]; } |
| 1570 | 1557 |
| 1571 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1558 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
| 1572 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1559 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
| 1573 }; | 1560 }; |
| 1574 | 1561 |
| 1575 | 1562 |
| 1563 class LLoadRoot V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1564 public: |
| 1565 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
| 1566 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
| 1567 |
| 1568 Heap::RootListIndex index() const { return hydrogen()->index(); } |
| 1569 }; |
| 1570 |
| 1571 |
| 1576 class LLoadExternalArrayPointer V8_FINAL | 1572 class LLoadExternalArrayPointer V8_FINAL |
| 1577 : public LTemplateInstruction<1, 1, 0> { | 1573 : public LTemplateInstruction<1, 1, 0> { |
| 1578 public: | 1574 public: |
| 1579 explicit LLoadExternalArrayPointer(LOperand* object) { | 1575 explicit LLoadExternalArrayPointer(LOperand* object) { |
| 1580 inputs_[0] = object; | 1576 inputs_[0] = object; |
| 1581 } | 1577 } |
| 1582 | 1578 |
| 1583 LOperand* object() { return inputs_[0]; } | 1579 LOperand* object() { return inputs_[0]; } |
| 1584 | 1580 |
| 1585 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, | 1581 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
| (...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2771 | 2767 |
| 2772 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2768 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2773 }; | 2769 }; |
| 2774 | 2770 |
| 2775 #undef DECLARE_HYDROGEN_ACCESSOR | 2771 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2776 #undef DECLARE_CONCRETE_INSTRUCTION | 2772 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2777 | 2773 |
| 2778 } } // namespace v8::internal | 2774 } } // namespace v8::internal |
| 2779 | 2775 |
| 2780 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2776 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |