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

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

Issue 900223002: Revert of Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/arm/assembler-arm.h ('k') | src/arm/lithium-codegen-arm.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after
3369 } 3369 }
3370 3370
3371 3371
3372 void Assembler::RecordComment(const char* msg) { 3372 void Assembler::RecordComment(const char* msg) {
3373 if (FLAG_code_comments) { 3373 if (FLAG_code_comments) {
3374 CheckBuffer(); 3374 CheckBuffer();
3375 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3375 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3376 } 3376 }
3377 } 3377 }
3378 3378
3379
3380 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
3381 if (FLAG_trace_deopt) {
3382 EnsureSpace ensure_space(this);
3383 RecordRelocInfo(RelocInfo::POSITION, raw_position);
3384 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
3385 }
3386 }
3387
3388 3379
3389 void Assembler::RecordConstPool(int size) { 3380 void Assembler::RecordConstPool(int size) {
3390 // We only need this for debugger support, to correctly compute offsets in the 3381 // We only need this for debugger support, to correctly compute offsets in the
3391 // code. 3382 // code.
3392 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); 3383 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size));
3393 } 3384 }
3394 3385
3395 3386
3396 void Assembler::GrowBuffer() { 3387 void Assembler::GrowBuffer() {
3397 if (!own_buffer_) FATAL("external code buffer is too small"); 3388 if (!own_buffer_) FATAL("external code buffer is too small");
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
3986 assm->instr_at_put( 3977 assm->instr_at_put(
3987 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); 3978 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset));
3988 } 3979 }
3989 } 3980 }
3990 } 3981 }
3991 3982
3992 3983
3993 } } // namespace v8::internal 3984 } } // namespace v8::internal
3994 3985
3995 #endif // V8_TARGET_ARCH_ARM 3986 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698