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

Issue 9443002: Added LongJump for bailout. When trying to fix all crashes, CHECK_ALIVE did not scale well as bail… (Closed)

Created:
8 years, 10 months ago by srdjan
Modified:
8 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added LongJump for bailout. When trying to fix all crashes, CHECK_ALIVE did not scale well as bailing out mechanism. Implemented UnaryOpNode. Fix crashes. (this CL also includes the patches from https://chromiumcodereview.appspot.com/9429056/, will remove them once syncing with submitted 9429056) Committed: https://code.google.com/p/dart/source/detail?r=4541

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -35 lines) Patch
M runtime/vm/compiler.cc View 1 2 2 chunks +17 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 2 chunks +2 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 8 chunks +44 lines, -24 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 10 months ago (2012-02-22 23:43:56 UTC) #1
Kevin Millikin (Google)
Thanks, that's much nicer. LGTM. https://chromiumcodereview.appspot.com/9443002/diff/4001/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://chromiumcodereview.appspot.com/9443002/diff/4001/runtime/vm/flow_graph_builder.cc#newcode341 runtime/vm/flow_graph_builder.cc:341: return new InstanceCallComp(node.Name(), argument); ...
8 years, 10 months ago (2012-02-23 09:31:43 UTC) #2
srdjan
8 years, 10 months ago (2012-02-23 16:06:12 UTC) #3
https://chromiumcodereview.appspot.com/9443002/diff/4001/runtime/vm/flow_grap...
File runtime/vm/flow_graph_builder.cc (right):

https://chromiumcodereview.appspot.com/9443002/diff/4001/runtime/vm/flow_grap...
runtime/vm/flow_graph_builder.cc:341: return new InstanceCallComp(node.Name(),
argument);
On 2012/02/23 09:31:43, kmillikin wrote:
> We might want to make the InstanceCallComp (and other kinds of call)
constructor
> take varargs, or else have overloaded versions for common argument counts, and
> make the array embedded in the instruction rather than indirect, and get rid
of
> the allocation and calls to Add at every call site.
> 
> What do you think?

I do not think that cost of allocating ZoneGrowableArray will be relevant. We do
something similar in the old code generator and the cost of the code generator
has not shown up on the profile. I am also not in favor of using varargs but in
some very rare cases.

Powered by Google App Engine
This is Rietveld 408576698