Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: src/x64/assembler-x64.cc

Issue 874323003: Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor change Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3368 matching lines...) Expand 10 before | Expand all | Expand 10 after
3379 3379
3380 3380
3381 void Assembler::RecordComment(const char* msg, bool force) { 3381 void Assembler::RecordComment(const char* msg, bool force) {
3382 if (FLAG_code_comments || force) { 3382 if (FLAG_code_comments || force) {
3383 EnsureSpace ensure_space(this); 3383 EnsureSpace ensure_space(this);
3384 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3384 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3385 } 3385 }
3386 } 3386 }
3387 3387
3388 3388
3389 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
3390 if (FLAG_trace_deopt) {
3391 EnsureSpace ensure_space(this);
3392 RecordRelocInfo(RelocInfo::POSITION, raw_position);
3393 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
3394 }
3395 }
3396
3397
3389 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { 3398 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) {
3390 // No out-of-line constant pool support. 3399 // No out-of-line constant pool support.
3391 DCHECK(!FLAG_enable_ool_constant_pool); 3400 DCHECK(!FLAG_enable_ool_constant_pool);
3392 return isolate->factory()->empty_constant_pool_array(); 3401 return isolate->factory()->empty_constant_pool_array();
3393 } 3402 }
3394 3403
3395 3404
3396 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 3405 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
3397 // No out-of-line constant pool support. 3406 // No out-of-line constant pool support.
3398 DCHECK(!FLAG_enable_ool_constant_pool); 3407 DCHECK(!FLAG_enable_ool_constant_pool);
(...skipping 16 matching lines...) Expand all
3415 3424
3416 3425
3417 bool RelocInfo::IsInConstantPool() { 3426 bool RelocInfo::IsInConstantPool() {
3418 return false; 3427 return false;
3419 } 3428 }
3420 3429
3421 3430
3422 } } // namespace v8::internal 3431 } } // namespace v8::internal
3423 3432
3424 #endif // V8_TARGET_ARCH_X64 3433 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698