| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 const char* Mnemonic() const final { return mnemonic; } \ | 152 const char* Mnemonic() const final { return mnemonic; } \ |
| 153 static L##type* cast(LInstruction* instr) { \ | 153 static L##type* cast(LInstruction* instr) { \ |
| 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 { return H##type::cast(hydrogen_value()); } | 160 H##type* hydrogen() const { return H##type::cast(hydrogen_value()); } |
| 161 | 161 |
| 162 | |
| 163 class LInstruction : public ZoneObject { | 162 class LInstruction : public ZoneObject { |
| 164 public: | 163 public: |
| 165 LInstruction() | 164 LInstruction() |
| 166 : environment_(NULL), | 165 : environment_(NULL), |
| 167 hydrogen_value_(NULL), | 166 hydrogen_value_(NULL), |
| 168 bit_field_(IsCallBits::encode(false)) {} | 167 bit_field_(IsCallBits::encode(false)) {} |
| 169 | 168 |
| 170 virtual ~LInstruction() {} | 169 virtual ~LInstruction() {} |
| 171 | 170 |
| 172 virtual void CompileToNative(LCodeGen* generator) = 0; | 171 virtual void CompileToNative(LCodeGen* generator) = 0; |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2407 | 2406 |
| 2408 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2407 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2409 }; | 2408 }; |
| 2410 | 2409 |
| 2411 #undef DECLARE_HYDROGEN_ACCESSOR | 2410 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2412 #undef DECLARE_CONCRETE_INSTRUCTION | 2411 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2413 } // namespace internal | 2412 } // namespace internal |
| 2414 } // namespace v8 | 2413 } // namespace v8 |
| 2415 | 2414 |
| 2416 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2415 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| OLD | NEW |