| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
| 10 | 10 |
| (...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3444 | 3444 |
| 3445 void Assembler::RecordComment(const char* msg, bool force) { | 3445 void Assembler::RecordComment(const char* msg, bool force) { |
| 3446 if (FLAG_code_comments || force) { | 3446 if (FLAG_code_comments || force) { |
| 3447 EnsureSpace ensure_space(this); | 3447 EnsureSpace ensure_space(this); |
| 3448 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3448 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
| 3449 } | 3449 } |
| 3450 } | 3450 } |
| 3451 | 3451 |
| 3452 | 3452 |
| 3453 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { | 3453 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
| 3454 if (FLAG_trace_deopt) { | 3454 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { |
| 3455 EnsureSpace ensure_space(this); | 3455 EnsureSpace ensure_space(this); |
| 3456 RecordRelocInfo(RelocInfo::POSITION, raw_position); | 3456 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 3457 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | 3457 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 3458 } | 3458 } |
| 3459 } | 3459 } |
| 3460 | 3460 |
| 3461 | 3461 |
| 3462 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { | 3462 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { |
| 3463 // No out-of-line constant pool support. | 3463 // No out-of-line constant pool support. |
| 3464 DCHECK(!FLAG_enable_ool_constant_pool); | 3464 DCHECK(!FLAG_enable_ool_constant_pool); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3488 | 3488 |
| 3489 | 3489 |
| 3490 bool RelocInfo::IsInConstantPool() { | 3490 bool RelocInfo::IsInConstantPool() { |
| 3491 return false; | 3491 return false; |
| 3492 } | 3492 } |
| 3493 | 3493 |
| 3494 | 3494 |
| 3495 } } // namespace v8::internal | 3495 } } // namespace v8::internal |
| 3496 | 3496 |
| 3497 #endif // V8_TARGET_ARCH_X64 | 3497 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |