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

Issue 12049039: Fix source position for stack traces with optimized top function. (Closed)

Created:
7 years, 11 months ago by Florian Schneider
Modified:
7 years, 10 months ago
Reviewers:
srdjan, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix source position for stack traces with optimized top function. Fix decoding of the deoptimization info when constructing a stack trace. Fix stack trace for checked mode exceptions from optimized code. BUG=dart:8058 TEST=runtime/tests/vm/dart/optimized_stacktrace_test.dart, tests/language/stack_overflow_stacktrace_test.dart Committed: https://code.google.com/p/dart/source/detail?r=17755

Patch Set 1 #

Patch Set 2 : avoid default arguments by using pending_deoptimization_env_ #

Total comments: 20

Patch Set 3 : addressed comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -73 lines) Patch
A runtime/tests/vm/dart/optimized_stacktrace_test.dart View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/deopt_instructions.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 3 3 chunks +9 lines, -15 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 6 chunks +20 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 6 chunks +20 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 12 chunks +14 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 13 chunks +18 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 13 chunks +18 lines, -3 lines 0 comments Download
M runtime/vm/stack_frame.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M runtime/vm/stack_frame.cc View 1 2 3 2 chunks +22 lines, -25 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A tests/language/stack_overflow_stacktrace_test.dart View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Florian Schneider
7 years, 10 months ago (2013-01-28 14:49:08 UTC) #1
srdjan
LGTM with comments https://codereview.chromium.org/12049039/diff/11001/runtime/tests/vm/dart/optimized_stacktrace_test.dart File runtime/tests/vm/dart/optimized_stacktrace_test.dart (right): https://codereview.chromium.org/12049039/diff/11001/runtime/tests/vm/dart/optimized_stacktrace_test.dart#newcode16 runtime/tests/vm/dart/optimized_stacktrace_test.dart:16: for (var i=0; i<10000; i++) foo(42); ...
7 years, 10 months ago (2013-01-28 18:03:58 UTC) #2
siva
https://codereview.chromium.org/12049039/diff/11001/runtime/vm/stack_frame.cc File runtime/vm/stack_frame.cc (right): https://codereview.chromium.org/12049039/diff/11001/runtime/vm/stack_frame.cc#newcode300 runtime/vm/stack_frame.cc:300: deopt_info_.ToInstructions(deopt_table, &deopt_instructions_); Is this some kind of code hoisting ...
7 years, 10 months ago (2013-01-28 22:46:55 UTC) #3
Florian Schneider
Thanks for the feedback. I could also simplify the code a bit since we can ...
7 years, 10 months ago (2013-01-29 12:19:07 UTC) #4
regis
7 years, 10 months ago (2013-01-29 16:09:20 UTC) #5
Message was sent while issue was closed.
Florian,

Do you mind fixing the arm and mips builds?

Thanks,
Regis

Powered by Google App Engine
This is Rietveld 408576698