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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 MacroAssembler* const masm_; | 203 MacroAssembler* const masm_; |
204 OutOfLineCode* const next_; | 204 OutOfLineCode* const next_; |
205 }; | 205 }; |
206 | 206 |
207 | 207 |
208 // TODO(dcarney): generify this on bleeding_edge and replace this call | 208 // TODO(dcarney): generify this on bleeding_edge and replace this call |
209 // when merged. | 209 // when merged. |
210 static inline void FinishCode(MacroAssembler* masm) { | 210 static inline void FinishCode(MacroAssembler* masm) { |
211 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM | 211 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM |
212 masm->CheckConstPool(true, false); | 212 masm->CheckConstPool(true, false); |
213 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 | |
214 masm->ud2(); | |
215 #endif | 213 #endif |
216 } | 214 } |
217 | 215 |
218 } // namespace compiler | 216 } // namespace compiler |
219 } // namespace internal | 217 } // namespace internal |
220 } // namespace v8 | 218 } // namespace v8 |
221 | 219 |
222 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H | 220 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H |
OLD | NEW |