| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 DCHECK(instr->Is##type()); \ | 151 DCHECK(instr->Is##type()); \ |
| 152 return reinterpret_cast<L##type*>(instr); \ | 152 return reinterpret_cast<L##type*>(instr); \ |
| 153 } | 153 } |
| 154 | 154 |
| 155 | 155 |
| 156 #define DECLARE_HYDROGEN_ACCESSOR(type) \ | 156 #define DECLARE_HYDROGEN_ACCESSOR(type) \ |
| 157 H##type* hydrogen() const { \ | 157 H##type* hydrogen() const { \ |
| 158 return H##type::cast(hydrogen_value()); \ | 158 return H##type::cast(hydrogen_value()); \ |
| 159 } | 159 } |
| 160 | 160 |
| 161 | |
| 162 class LInstruction : public ZoneObject { | 161 class LInstruction : public ZoneObject { |
| 163 public: | 162 public: |
| 164 LInstruction() | 163 LInstruction() |
| 165 : environment_(NULL), | 164 : environment_(NULL), |
| 166 hydrogen_value_(NULL), | 165 hydrogen_value_(NULL), |
| 167 bit_field_(IsCallBits::encode(false)) { | 166 bit_field_(IsCallBits::encode(false)) { |
| 168 } | 167 } |
| 169 | 168 |
| 170 virtual ~LInstruction() {} | 169 virtual ~LInstruction() {} |
| 171 | 170 |
| (...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2488 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2490 }; | 2489 }; |
| 2491 | 2490 |
| 2492 #undef DECLARE_HYDROGEN_ACCESSOR | 2491 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2493 #undef DECLARE_CONCRETE_INSTRUCTION | 2492 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2494 | 2493 |
| 2495 } // namespace internal | 2494 } // namespace internal |
| 2496 } // namespace v8 | 2495 } // namespace v8 |
| 2497 | 2496 |
| 2498 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2497 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |