OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 V(FunctionLiteral) \ | 96 V(FunctionLiteral) \ |
97 V(Gap) \ | 97 V(Gap) \ |
98 V(GetCachedArrayIndex) \ | 98 V(GetCachedArrayIndex) \ |
99 V(GlobalObject) \ | 99 V(GlobalObject) \ |
100 V(GlobalReceiver) \ | 100 V(GlobalReceiver) \ |
101 V(Goto) \ | 101 V(Goto) \ |
102 V(HasCachedArrayIndex) \ | 102 V(HasCachedArrayIndex) \ |
103 V(HasCachedArrayIndexAndBranch) \ | 103 V(HasCachedArrayIndexAndBranch) \ |
104 V(HasInstanceType) \ | 104 V(HasInstanceType) \ |
105 V(HasInstanceTypeAndBranch) \ | 105 V(HasInstanceTypeAndBranch) \ |
| 106 V(In) \ |
106 V(InstanceOf) \ | 107 V(InstanceOf) \ |
107 V(InstanceOfAndBranch) \ | 108 V(InstanceOfAndBranch) \ |
108 V(InstanceOfKnownGlobal) \ | 109 V(InstanceOfKnownGlobal) \ |
109 V(Integer32ToDouble) \ | 110 V(Integer32ToDouble) \ |
110 V(InvokeFunction) \ | 111 V(InvokeFunction) \ |
111 V(IsNull) \ | 112 V(IsNull) \ |
112 V(IsNullAndBranch) \ | 113 V(IsNullAndBranch) \ |
113 V(IsObject) \ | 114 V(IsObject) \ |
114 V(IsObjectAndBranch) \ | 115 V(IsObjectAndBranch) \ |
115 V(IsSmi) \ | 116 V(IsSmi) \ |
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; | 2039 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; |
2039 }; | 2040 }; |
2040 | 2041 |
2041 | 2042 |
2042 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2043 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
2043 public: | 2044 public: |
2044 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2045 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
2045 }; | 2046 }; |
2046 | 2047 |
2047 | 2048 |
| 2049 class LIn: public LTemplateInstruction<1, 2, 0> { |
| 2050 public: |
| 2051 LIn(LOperand* key, LOperand* object) { |
| 2052 inputs_[0] = key; |
| 2053 inputs_[1] = object; |
| 2054 } |
| 2055 |
| 2056 LOperand* key() { return inputs_[0]; } |
| 2057 LOperand* object() { return inputs_[1]; } |
| 2058 |
| 2059 DECLARE_CONCRETE_INSTRUCTION(In, "in") |
| 2060 }; |
| 2061 |
| 2062 |
2048 class LChunkBuilder; | 2063 class LChunkBuilder; |
2049 class LChunk: public ZoneObject { | 2064 class LChunk: public ZoneObject { |
2050 public: | 2065 public: |
2051 explicit LChunk(CompilationInfo* info, HGraph* graph) | 2066 explicit LChunk(CompilationInfo* info, HGraph* graph) |
2052 : spill_slot_count_(0), | 2067 : spill_slot_count_(0), |
2053 info_(info), | 2068 info_(info), |
2054 graph_(graph), | 2069 graph_(graph), |
2055 instructions_(32), | 2070 instructions_(32), |
2056 pointer_maps_(8), | 2071 pointer_maps_(8), |
2057 inlined_closures_(1) { } | 2072 inlined_closures_(1) { } |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2282 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2268 }; | 2283 }; |
2269 | 2284 |
2270 #undef DECLARE_HYDROGEN_ACCESSOR | 2285 #undef DECLARE_HYDROGEN_ACCESSOR |
2271 #undef DECLARE_INSTRUCTION | 2286 #undef DECLARE_INSTRUCTION |
2272 #undef DECLARE_CONCRETE_INSTRUCTION | 2287 #undef DECLARE_CONCRETE_INSTRUCTION |
2273 | 2288 |
2274 } } // namespace v8::internal | 2289 } } // namespace v8::internal |
2275 | 2290 |
2276 #endif // V8_IA32_LITHIUM_IA32_H_ | 2291 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |