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

Issue 1574993003: Add --check-code-pointer flag for debug builds (Closed)

Created:
4 years, 11 months ago by Cutch
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Florian Schneider
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add --check-code-pointer flag for debug builds - Introduce --check-code-pointer which is false by default. - Sort DECLARE / DEFINE flag macros in assembler*.cc Fixes #25361 R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/768e4ddee703c80b362644c4518db2077a057368

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
M runtime/vm/assembler.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/assembler_arm.cc View 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/assembler_arm64.cc View 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/assembler_mips.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/assembler_x64.cc View 2 chunks +6 lines, -1 line 1 comment Download

Messages

Total messages: 9 (5 generated)
Cutch
4 years, 11 months ago (2016-01-11 18:34:01 UTC) #4
rmacnak
lgtm. cc Florian. I think we can restore this check to be enabled by default ...
4 years, 11 months ago (2016-01-11 21:19:34 UTC) #5
Cutch
Committed patchset #1 (id:1) manually as 768e4ddee703c80b362644c4518db2077a057368 (presubmit successful).
4 years, 11 months ago (2016-01-11 21:20:18 UTC) #7
Florian Schneider
4 years, 11 months ago (2016-01-12 11:31:23 UTC) #9
Message was sent while issue was closed.
I'd like to keep the assertion on by default. I think Ryan is right: We can just
insert
 the code pointer check in EnterDartFrame, so we can still have the assertion.

https://codereview.chromium.org/1574993003/diff/1/runtime/vm/assembler_x64.cc
File runtime/vm/assembler_x64.cc (right):

https://codereview.chromium.org/1574993003/diff/1/runtime/vm/assembler_x64.cc...
runtime/vm/assembler_x64.cc:3352: pushq(PP);
Would it work to do CheckCodePointer here instead, after the Dart frame is
built? (and remove it from LoadPoolPointer)

Powered by Google App Engine
This is Rietveld 408576698