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

Issue 9959134: Implement StringConcatNode in flow graph builder (it is ised on for "+" on strings, will be soon re… (Closed)

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

Description

Implement StringConcatNode in flow graph builder (it is ised on for "+" on strings, will be soon removed). Committed: https://code.google.com/p/dart/source/detail?r=6179

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 (+81 lines, -1 line) Patch
M runtime/vm/flow_graph_builder.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 2 chunks +75 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 8 months ago (2012-04-04 00:33:41 UTC) #1
regis
LGTM https://chromiumcodereview.appspot.com/9959134/diff/3002/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://chromiumcodereview.appspot.com/9959134/diff/3002/runtime/vm/flow_graph_builder.cc#newcode330 runtime/vm/flow_graph_builder.cc:330: UNIMPLEMENTED(); A compile time error needs to be ...
8 years, 8 months ago (2012-04-04 01:58:48 UTC) #2
srdjan
8 years, 8 months ago (2012-04-04 17:09:37 UTC) #3
Thanks for the review.

https://chromiumcodereview.appspot.com/9959134/diff/3002/runtime/vm/flow_grap...
File runtime/vm/flow_graph_builder.cc (right):

https://chromiumcodereview.appspot.com/9959134/diff/3002/runtime/vm/flow_grap...
runtime/vm/flow_graph_builder.cc:330: UNIMPLEMENTED();
On 2012/04/04 01:58:48, regis wrote:
> A compile time error needs to be reported here. I guess there is no mechanism
> yet to report a compile time error from the graph, but this should suffice:
> 
>   error ^= concatenated;
>   Isolate::Current()->long_jump_base()->Jump(1, error);
> 
> If you need to add a formatted message, you could call
> Parser::FormatErrorWithAppend
> 

Discussed offline, changing it to UNREACHABLE. The flow graph builder,should not
report any errors, it's parser's job. This code also belongs rather in the
parser, but since it will be obsoleted soon, will not move it there. In
addition, this error should not be possible (calling internal method with known
arguments).

Powered by Google App Engine
This is Rietveld 408576698