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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 }; | 143 }; |
144 | 144 |
145 | 145 |
146 // TODO(dcarney): generify this on bleeding_edge and replace this call | 146 // TODO(dcarney): generify this on bleeding_edge and replace this call |
147 // when merged. | 147 // when merged. |
148 static inline void FinishCode(MacroAssembler* masm) { | 148 static inline void FinishCode(MacroAssembler* masm) { |
149 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM | 149 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM |
150 masm->CheckConstPool(true, false); | 150 masm->CheckConstPool(true, false); |
151 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 | 151 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 |
152 masm->ud2(); | 152 masm->ud2(); |
| 153 #elif V8_TARGET_ARCH_PPC |
| 154 masm->EmitConstantPool(); |
153 #endif | 155 #endif |
154 } | 156 } |
155 | 157 |
156 } // namespace compiler | 158 } // namespace compiler |
157 } // namespace internal | 159 } // namespace internal |
158 } // namespace v8 | 160 } // namespace v8 |
159 | 161 |
160 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H | 162 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H |
OLD | NEW |