| 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_COMPILER_CODE_GENERATOR_IMPL_H_ | 5 #ifndef V8_COMPILER_CODE_GENERATOR_IMPL_H_ |
| 6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_ | 6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/compiler/code-generator.h" | 9 #include "src/compiler/code-generator.h" |
| 10 #include "src/compiler/instruction.h" | 10 #include "src/compiler/instruction.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 ExternalReference ToExternalReference(InstructionOperand* op) { | 122 ExternalReference ToExternalReference(InstructionOperand* op) { |
| 123 return ToConstant(op).ToExternalReference(); | 123 return ToConstant(op).ToExternalReference(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 Handle<HeapObject> ToHeapObject(InstructionOperand* op) { | 126 Handle<HeapObject> ToHeapObject(InstructionOperand* op) { |
| 127 return ToConstant(op).ToHeapObject(); | 127 return ToConstant(op).ToHeapObject(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 Frame* frame() const { return gen_->frame(); } | 130 Frame* frame() const { return gen_->frame(); } |
| 131 FrameAccessState* frame_access_state() const { |
| 132 return gen_->frame_access_state(); |
| 133 } |
| 131 Isolate* isolate() const { return gen_->isolate(); } | 134 Isolate* isolate() const { return gen_->isolate(); } |
| 132 Linkage* linkage() const { return gen_->linkage(); } | 135 Linkage* linkage() const { return gen_->linkage(); } |
| 133 | 136 |
| 134 protected: | 137 protected: |
| 135 CodeGenerator* gen_; | 138 CodeGenerator* gen_; |
| 136 Instruction* instr_; | 139 Instruction* instr_; |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 | 142 |
| 140 // Generator for out-of-line code that is emitted after the main code is done. | 143 // Generator for out-of-line code that is emitted after the main code is done. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 169 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 | 172 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 |
| 170 masm->ud2(); | 173 masm->ud2(); |
| 171 #endif | 174 #endif |
| 172 } | 175 } |
| 173 | 176 |
| 174 } // namespace compiler | 177 } // namespace compiler |
| 175 } // namespace internal | 178 } // namespace internal |
| 176 } // namespace v8 | 179 } // namespace v8 |
| 177 | 180 |
| 178 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H | 181 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H |
| OLD | NEW |