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(CmpObjectEqAndBranch) \ | 85 V(CmpObjectEqAndBranch) \ |
86 V(CmpMapAndBranch) \ | 86 V(CmpMapAndBranch) \ |
87 V(CmpT) \ | 87 V(CmpT) \ |
88 V(ConstantD) \ | 88 V(ConstantD) \ |
89 V(ConstantI) \ | 89 V(ConstantI) \ |
90 V(ConstantS) \ | 90 V(ConstantS) \ |
91 V(ConstantT) \ | 91 V(ConstantT) \ |
92 V(Context) \ | 92 V(Context) \ |
93 V(DebugBreak) \ | 93 V(DebugBreak) \ |
94 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
95 V(DeleteProperty) \ | |
96 V(Deoptimize) \ | 95 V(Deoptimize) \ |
97 V(DivI) \ | 96 V(DivI) \ |
98 V(DoubleToI) \ | 97 V(DoubleToI) \ |
99 V(DoubleToSmi) \ | 98 V(DoubleToSmi) \ |
100 V(DummyUse) \ | 99 V(DummyUse) \ |
101 V(ElementsKind) \ | 100 V(ElementsKind) \ |
102 V(MapEnumLength) \ | 101 V(MapEnumLength) \ |
103 V(FunctionLiteral) \ | 102 V(FunctionLiteral) \ |
104 V(GetCachedArrayIndex) \ | 103 V(GetCachedArrayIndex) \ |
105 V(GlobalObject) \ | 104 V(GlobalObject) \ |
106 V(GlobalReceiver) \ | 105 V(GlobalReceiver) \ |
107 V(Goto) \ | 106 V(Goto) \ |
108 V(HasCachedArrayIndexAndBranch) \ | 107 V(HasCachedArrayIndexAndBranch) \ |
109 V(HasInstanceTypeAndBranch) \ | 108 V(HasInstanceTypeAndBranch) \ |
110 V(In) \ | |
111 V(InstanceOf) \ | 109 V(InstanceOf) \ |
112 V(InstanceOfKnownGlobal) \ | 110 V(InstanceOfKnownGlobal) \ |
113 V(InstanceSize) \ | 111 V(InstanceSize) \ |
114 V(InstructionGap) \ | 112 V(InstructionGap) \ |
115 V(Integer32ToDouble) \ | 113 V(Integer32ToDouble) \ |
116 V(Integer32ToSmi) \ | 114 V(Integer32ToSmi) \ |
117 V(Uint32ToDouble) \ | 115 V(Uint32ToDouble) \ |
118 V(InvokeFunction) \ | 116 V(InvokeFunction) \ |
119 V(IsConstructCallAndBranch) \ | 117 V(IsConstructCallAndBranch) \ |
120 V(IsObjectAndBranch) \ | 118 V(IsObjectAndBranch) \ |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 LOperand* left() { return inputs_[0]; } | 1023 LOperand* left() { return inputs_[0]; } |
1026 LOperand* right() { return inputs_[1]; } | 1024 LOperand* right() { return inputs_[1]; } |
1027 | 1025 |
1028 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1026 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1029 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1027 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1030 | 1028 |
1031 Token::Value op() const { return hydrogen()->token(); } | 1029 Token::Value op() const { return hydrogen()->token(); } |
1032 }; | 1030 }; |
1033 | 1031 |
1034 | 1032 |
1035 class LIn: public LTemplateInstruction<1, 2, 0> { | |
1036 public: | |
1037 LIn(LOperand* key, LOperand* object) { | |
1038 inputs_[0] = key; | |
1039 inputs_[1] = object; | |
1040 } | |
1041 | |
1042 LOperand* key() { return inputs_[0]; } | |
1043 LOperand* object() { return inputs_[1]; } | |
1044 | |
1045 DECLARE_CONCRETE_INSTRUCTION(In, "in") | |
1046 }; | |
1047 | |
1048 | |
1049 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { | 1033 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { |
1050 public: | 1034 public: |
1051 LInstanceOf(LOperand* left, LOperand* right) { | 1035 LInstanceOf(LOperand* left, LOperand* right) { |
1052 inputs_[0] = left; | 1036 inputs_[0] = left; |
1053 inputs_[1] = right; | 1037 inputs_[1] = right; |
1054 } | 1038 } |
1055 | 1039 |
1056 LOperand* left() { return inputs_[0]; } | 1040 LOperand* left() { return inputs_[0]; } |
1057 LOperand* right() { return inputs_[1]; } | 1041 LOperand* right() { return inputs_[1]; } |
1058 | 1042 |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 } | 2457 } |
2474 | 2458 |
2475 LOperand* temp() { return temps_[0]; } | 2459 LOperand* temp() { return temps_[0]; } |
2476 | 2460 |
2477 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | 2461 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, |
2478 "is-construct-call-and-branch") | 2462 "is-construct-call-and-branch") |
2479 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch) | 2463 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch) |
2480 }; | 2464 }; |
2481 | 2465 |
2482 | 2466 |
2483 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> { | |
2484 public: | |
2485 LDeleteProperty(LOperand* obj, LOperand* key) { | |
2486 inputs_[0] = obj; | |
2487 inputs_[1] = key; | |
2488 } | |
2489 | |
2490 LOperand* object() { return inputs_[0]; } | |
2491 LOperand* key() { return inputs_[1]; } | |
2492 | |
2493 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") | |
2494 }; | |
2495 | |
2496 | |
2497 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { | 2467 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { |
2498 public: | 2468 public: |
2499 LOsrEntry() {} | 2469 LOsrEntry() {} |
2500 | 2470 |
2501 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } | 2471 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } |
2502 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") | 2472 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") |
2503 }; | 2473 }; |
2504 | 2474 |
2505 | 2475 |
2506 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2476 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 | 2721 |
2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2753 }; | 2723 }; |
2754 | 2724 |
2755 #undef DECLARE_HYDROGEN_ACCESSOR | 2725 #undef DECLARE_HYDROGEN_ACCESSOR |
2756 #undef DECLARE_CONCRETE_INSTRUCTION | 2726 #undef DECLARE_CONCRETE_INSTRUCTION |
2757 | 2727 |
2758 } } // namespace v8::int | 2728 } } // namespace v8::int |
2759 | 2729 |
2760 #endif // V8_X64_LITHIUM_X64_H_ | 2730 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |