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

Issue 10700034: Add a goto instruction to the IL use it to terminate basic blocks. (Closed)

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

Description

Add a goto instruction to the IL use it to terminate basic blocks. Having an explicit control instruction at the end of each basic block allows to easily remove instructions inside a block because the last_instruction pointer can not change. Committed: https://code.google.com/p/dart/source/detail?r=9253

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -54 lines) Patch
M vm/flow_graph_builder.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M vm/flow_graph_builder.cc View 1 22 chunks +65 lines, -33 lines 0 comments Download
M vm/flow_graph_compiler.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M vm/il_printer.cc View 1 4 chunks +10 lines, -10 lines 0 comments Download
M vm/intermediate_language.h View 1 11 chunks +43 lines, -7 lines 0 comments Download
M vm/intermediate_language.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
8 years, 5 months ago (2012-06-29 15:46:23 UTC) #1
Vyacheslav Egorov (Google)
lgtm https://chromiumcodereview.appspot.com/10700034/diff/1/vm/flow_graph_builder.cc File vm/flow_graph_builder.cc (right): https://chromiumcodereview.appspot.com/10700034/diff/1/vm/flow_graph_builder.cc#newcode82 vm/flow_graph_builder.cc:82: if (is_empty()) { I find a bit confusing ...
8 years, 5 months ago (2012-06-29 16:06:03 UTC) #2
Florian Schneider
8 years, 5 months ago (2012-06-29 16:13:12 UTC) #3
Agree. I'll do the refactoring part in a separate CL.

https://chromiumcodereview.appspot.com/10700034/diff/1/vm/intermediate_langua...
File vm/intermediate_language.h (right):

https://chromiumcodereview.appspot.com/10700034/diff/1/vm/intermediate_langua...
vm/intermediate_language.h:2387: virtual LocationSummary* locs()  { return NULL;
}
On 2012/06/29 16:06:03, Vyacheslav Egorov (Google) wrote:
> () {
> 
> single space

Done.

Powered by Google App Engine
This is Rietveld 408576698