| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 DCHECK(instr->Is##type()); \ | 155 DCHECK(instr->Is##type()); \ |
| 156 return reinterpret_cast<L##type*>(instr); \ | 156 return reinterpret_cast<L##type*>(instr); \ |
| 157 } | 157 } |
| 158 | 158 |
| 159 | 159 |
| 160 #define DECLARE_HYDROGEN_ACCESSOR(type) \ | 160 #define DECLARE_HYDROGEN_ACCESSOR(type) \ |
| 161 H##type* hydrogen() const { \ | 161 H##type* hydrogen() const { \ |
| 162 return H##type::cast(hydrogen_value()); \ | 162 return H##type::cast(hydrogen_value()); \ |
| 163 } | 163 } |
| 164 | 164 |
| 165 | |
| 166 class LInstruction : public ZoneObject { | 165 class LInstruction : public ZoneObject { |
| 167 public: | 166 public: |
| 168 LInstruction() | 167 LInstruction() |
| 169 : environment_(NULL), | 168 : environment_(NULL), |
| 170 hydrogen_value_(NULL), | 169 hydrogen_value_(NULL), |
| 171 bit_field_(IsCallBits::encode(false)) { | 170 bit_field_(IsCallBits::encode(false)) { |
| 172 } | 171 } |
| 173 | 172 |
| 174 virtual ~LInstruction() {} | 173 virtual ~LInstruction() {} |
| 175 | 174 |
| (...skipping 2331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2507 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2506 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2508 }; | 2507 }; |
| 2509 | 2508 |
| 2510 #undef DECLARE_HYDROGEN_ACCESSOR | 2509 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2511 #undef DECLARE_CONCRETE_INSTRUCTION | 2510 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2512 | 2511 |
| 2513 } // namespace internal | 2512 } // namespace internal |
| 2514 } // namespace v8 | 2513 } // namespace v8 |
| 2515 | 2514 |
| 2516 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2515 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |