| 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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
| 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 DCHECK(instr->Is##type()); \ | 154 DCHECK(instr->Is##type()); \ |
| 155 return reinterpret_cast<L##type*>(instr); \ | 155 return reinterpret_cast<L##type*>(instr); \ |
| 156 } | 156 } |
| 157 | 157 |
| 158 | 158 |
| 159 #define DECLARE_HYDROGEN_ACCESSOR(type) \ | 159 #define DECLARE_HYDROGEN_ACCESSOR(type) \ |
| 160 H##type* hydrogen() const { \ | 160 H##type* hydrogen() const { \ |
| 161 return H##type::cast(hydrogen_value()); \ | 161 return H##type::cast(hydrogen_value()); \ |
| 162 } | 162 } |
| 163 | 163 |
| 164 | |
| 165 class LInstruction : public ZoneObject { | 164 class LInstruction : public ZoneObject { |
| 166 public: | 165 public: |
| 167 LInstruction() | 166 LInstruction() |
| 168 : environment_(NULL), | 167 : environment_(NULL), |
| 169 hydrogen_value_(NULL), | 168 hydrogen_value_(NULL), |
| 170 bit_field_(IsCallBits::encode(false)) { | 169 bit_field_(IsCallBits::encode(false)) { |
| 171 } | 170 } |
| 172 | 171 |
| 173 virtual ~LInstruction() {} | 172 virtual ~LInstruction() {} |
| 174 | 173 |
| (...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2500 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2502 }; | 2501 }; |
| 2503 | 2502 |
| 2504 #undef DECLARE_HYDROGEN_ACCESSOR | 2503 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2505 #undef DECLARE_CONCRETE_INSTRUCTION | 2504 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2506 | 2505 |
| 2507 } // namespace internal | 2506 } // namespace internal |
| 2508 } // namespace v8 | 2507 } // namespace v8 |
| 2509 | 2508 |
| 2510 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2509 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
| OLD | NEW |