| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 DCHECK(instr->Is##type()); \ | 164 DCHECK(instr->Is##type()); \ |
| 165 return reinterpret_cast<L##type*>(instr); \ | 165 return reinterpret_cast<L##type*>(instr); \ |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 #define DECLARE_HYDROGEN_ACCESSOR(type) \ | 169 #define DECLARE_HYDROGEN_ACCESSOR(type) \ |
| 170 H##type* hydrogen() const { \ | 170 H##type* hydrogen() const { \ |
| 171 return H##type::cast(this->hydrogen_value()); \ | 171 return H##type::cast(this->hydrogen_value()); \ |
| 172 } | 172 } |
| 173 | 173 |
| 174 | |
| 175 class LInstruction : public ZoneObject { | 174 class LInstruction : public ZoneObject { |
| 176 public: | 175 public: |
| 177 LInstruction() | 176 LInstruction() |
| 178 : environment_(NULL), | 177 : environment_(NULL), |
| 179 hydrogen_value_(NULL), | 178 hydrogen_value_(NULL), |
| 180 bit_field_(IsCallBits::encode(false)) { } | 179 bit_field_(IsCallBits::encode(false)) { } |
| 181 | 180 |
| 182 virtual ~LInstruction() { } | 181 virtual ~LInstruction() { } |
| 183 | 182 |
| 184 virtual void CompileToNative(LCodeGen* generator) = 0; | 183 virtual void CompileToNative(LCodeGen* generator) = 0; |
| (...skipping 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2843 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2844 }; | 2843 }; |
| 2845 | 2844 |
| 2846 #undef DECLARE_HYDROGEN_ACCESSOR | 2845 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2847 #undef DECLARE_CONCRETE_INSTRUCTION | 2846 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2848 | 2847 |
| 2849 } // namespace internal | 2848 } // namespace internal |
| 2850 } // namespace v8 | 2849 } // namespace v8 |
| 2851 | 2850 |
| 2852 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 2851 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |