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

Issue 313403004: Fix deferred library code disabling for inlined functions. (Closed)

Created:
6 years, 6 months ago by srdjan
Modified:
6 years, 6 months ago
Reviewers:
Cutch, hausner, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, hausner
Visibility:
Public.

Description

Fix deferred library code disabling for inlined functions. R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=37107

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -22 lines) Patch
M runtime/vm/code_generator.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 3 chunks +11 lines, -7 lines 0 comments Download
M runtime/vm/flow_graph.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph.cc View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/parser.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/parser.cc View 1 chunk +3 lines, -7 lines 2 comments Download
A tests/language/deferred_inlined_test.dart View 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
srdjan
6 years, 6 months ago (2014-06-06 21:46:26 UTC) #1
Cutch
lgtm with some suggestions https://codereview.chromium.org/313403004/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/313403004/diff/40001/runtime/vm/compiler.cc#newcode563 runtime/vm/compiler.cc:563: } else if (FLAG_trace_patching) { ...
6 years, 6 months ago (2014-06-06 21:55:48 UTC) #2
srdjan
https://codereview.chromium.org/313403004/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/313403004/diff/40001/runtime/vm/compiler.cc#newcode563 runtime/vm/compiler.cc:563: } else if (FLAG_trace_patching) { On 2014/06/06 21:55:47, Cutch ...
6 years, 6 months ago (2014-06-06 22:06:16 UTC) #3
hausner
DBC: The change in Parser.cc slows down the common case where we don't see any ...
6 years, 6 months ago (2014-06-06 22:07:45 UTC) #4
srdjan
https://codereview.chromium.org/313403004/diff/40001/runtime/vm/parser.cc File runtime/vm/parser.cc (left): https://codereview.chromium.org/313403004/diff/40001/runtime/vm/parser.cc#oldcode141 runtime/vm/parser.cc:141: &GrowableObjectArray::ZoneHandle(GrowableObjectArray::New()); On 2014/06/06 22:07:44, hausner wrote: > We pay ...
6 years, 6 months ago (2014-06-06 22:14:35 UTC) #5
srdjan
Committed patchset #5 manually as r37107 (presubmit successful).
6 years, 6 months ago (2014-06-06 22:14:47 UTC) #6
Ivan Posva
DBC -ip https://codereview.chromium.org/313403004/diff/80001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/313403004/diff/80001/runtime/vm/parser.cc#newcode144 runtime/vm/parser.cc:144: deferred_prefixes_->Add(&LibraryPrefix::ZoneHandle(I, prefix.raw())); Why do you have to ...
6 years, 6 months ago (2014-06-07 00:31:14 UTC) #7
srdjan
6 years, 6 months ago (2014-06-12 20:25:47 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/313403004/diff/80001/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

https://codereview.chromium.org/313403004/diff/80001/runtime/vm/parser.cc#new...
runtime/vm/parser.cc:144: deferred_prefixes_->Add(&LibraryPrefix::ZoneHandle(I,
prefix.raw()));
On 2014/06/07 00:31:14, Ivan Posva wrote:
> Why do you have to get a new ZoneHandle here? I don't think we have an inner
> zone while we are inlining.

Generally: if a handle's lifetime escapes the scope (in this case function) we
make it a ZoneHandle.

Powered by Google App Engine
This is Rietveld 408576698