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

Issue 2655803007: Expand _AssertionError._evaluateAssertion in the frontend (Closed)

Created:
3 years, 10 months ago by Cutch
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Expand _AssertionError._evaluateAssertion in the frontend The call in _evaluationAssertion becomes megamorphic and this is showing up on Flutter's profile. Avoid the call becoming megamorphic by inlining the body at the AST level. BUG= R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/9779ff264a7828ea336382b3a5654898206fe462

Patch Set 1 #

Total comments: 4

Patch Set 2 : ignore #

Patch Set 3 : special cases inline #

Patch Set 4 : special cases + old slow path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M runtime/vm/parser.cc View 1 2 3 1 chunk +17 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Cutch
3 years, 10 months ago (2017-01-26 19:24:46 UTC) #3
hausner
LGTM w/comment https://codereview.chromium.org/2655803007/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (left): https://codereview.chromium.org/2655803007/diff/1/runtime/vm/parser.cc#oldcode9257 runtime/vm/parser.cc:9257: Library::PrivateCoreLibName(Symbols::EvaluateAssertion()), arguments); The EvaluateAssertion function is now ...
3 years, 10 months ago (2017-01-26 20:41:13 UTC) #4
Cutch
PTAL https://codereview.chromium.org/2655803007/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (left): https://codereview.chromium.org/2655803007/diff/1/runtime/vm/parser.cc#oldcode9257 runtime/vm/parser.cc:9257: Library::PrivateCoreLibName(Symbols::EvaluateAssertion()), arguments); On 2017/01/26 20:41:13, hausner wrote: > ...
3 years, 10 months ago (2017-02-01 17:15:35 UTC) #5
hausner
Very nice and simple. LGTM.
3 years, 10 months ago (2017-02-01 17:40:13 UTC) #6
Cutch
3 years, 10 months ago (2017-02-02 15:34:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
9779ff264a7828ea336382b3a5654898206fe462 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698