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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 1574993003: Add --check-code-pointer flag for debug builds (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 85b83a9c9cc99b88b5f677545eaa9a82916a3e5f..02527fc038a39462e3a8bc6dbd7521a2df6fb8b8 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -18,9 +18,11 @@
namespace dart {
DECLARE_FLAG(bool, allow_absolute_addresses);
-DEFINE_FLAG(bool, print_stop_message, true, "Print stop message.");
+DECLARE_FLAG(bool, check_code_pointer);
DECLARE_FLAG(bool, inline_alloc);
+DEFINE_FLAG(bool, print_stop_message, true, "Print stop message.");
+
Assembler::Assembler(bool use_far_branches)
: buffer_(),
@@ -3372,6 +3374,9 @@ void Assembler::LeaveDartFrame(RestorePP restore_pp) {
void Assembler::CheckCodePointer() {
#ifdef DEBUG
+ if (!FLAG_check_code_pointer) {
+ return;
+ }
Comment("CheckCodePointer");
Label cid_ok, instructions_ok;
pushq(RAX);
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698