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

Issue 10827180: Move types out of the HInstructions. (Closed)

Created:
8 years, 4 months ago by floitsch
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org, ahe, kasperl, ngeoffray
Visibility:
Public.

Description

Move types out of the HInstructions. Committed: https://code.google.com/p/dart/source/detail?r=10823

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Cosmetic change (updated comment). #

Total comments: 19

Patch Set 4 : rebase #

Patch Set 5 : Address comments. #

Patch Set 6 : Simplifications. #

Total comments: 8

Patch Set 7 : Rebase and merge. #

Patch Set 8 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -364 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 3 4 5 6 3 chunks +14 lines, -2 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 3 4 5 6 5 chunks +17 lines, -9 lines 0 comments Download
M lib/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 6 7 10 chunks +23 lines, -11 lines 0 comments Download
M lib/compiler/implementation/ssa/bailout.dart View 1 2 3 4 5 5 chunks +25 lines, -21 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 6 7 29 chunks +63 lines, -58 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen_helpers.dart View 1 2 3 4 5 6 6 chunks +17 lines, -9 lines 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 3 4 5 6 51 chunks +179 lines, -162 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 2 3 4 5 6 35 chunks +93 lines, -70 lines 0 comments Download
M lib/compiler/implementation/ssa/tracer.dart View 1 2 3 4 6 chunks +12 lines, -7 lines 0 comments Download
M lib/compiler/implementation/ssa/types.dart View 1 chunk +16 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/types_propagation.dart View 1 2 3 4 7 chunks +17 lines, -13 lines 0 comments Download
M tests/compiler/dart2js/compiler_helper.dart View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
floitsch
Motivation: - while compiling the bailout method we sometimes want to know how a specific ...
8 years, 4 months ago (2012-08-06 15:42:40 UTC) #1
Lasse Reichstein Nielsen
LGTM. Generally consider reducing the dependencies, so you only depend on a HTypeMap instead of ...
8 years, 4 months ago (2012-08-08 07:44:53 UTC) #2
floitsch
PTAL. I don't really like the ItemCompilationContext name, but that's easy to change. For now ...
8 years, 4 months ago (2012-08-08 19:18:37 UTC) #3
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implementation/ssa/codegen.dart#newcode253 lib/compiler/implementation/ssa/codegen.dart:253: SsaCodeGenerator(this.backend, Why is the constructor down here. Move ...
8 years, 4 months ago (2012-08-16 10:41:34 UTC) #4
ngeoffray
LGTM https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implementation/compiler.dart#newcode70 lib/compiler/implementation/compiler.dart:70: : types = new HTypeMap(); fits in one ...
8 years, 4 months ago (2012-08-16 13:07:00 UTC) #5
floitsch
8 years, 4 months ago (2012-08-16 14:10:04 UTC) #6
https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
File lib/compiler/implementation/compiler.dart (right):

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
lib/compiler/implementation/compiler.dart:70: : types = new HTypeMap();
On 2012/08/16 13:07:00, ngeoffray wrote:
> fits in one line

Done.

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
File lib/compiler/implementation/ssa/codegen.dart (right):

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
lib/compiler/implementation/ssa/codegen.dart:253: SsaCodeGenerator(this.backend,
On 2012/08/16 10:41:34, Lasse Reichstein Nielsen wrote:
> Why is the constructor down here. Move it up just after the fields.

Done.

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
lib/compiler/implementation/ssa/codegen.dart:259: (work.compilationContext as
JavaScriptItemCompilationContext).types,
On 2012/08/16 10:41:34, Lasse Reichstein Nielsen wrote:
> Why not just expect a JavaScriptWorkItem if you know it's one? 
> Don't use 'as' if you don't need a dynamic check. 

There is no JavaScriptWorkItem anymore.
Keeping as is, but I can change it in a future CL.

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
File lib/compiler/implementation/ssa/optimize.dart (right):

https://chromiumcodereview.appspot.com/10827180/diff/3030/lib/compiler/implem...
lib/compiler/implementation/ssa/optimize.dart:29: void optimize(WorkItem work,
HGraph graph) {
On 2012/08/16 10:41:34, Lasse Reichstein Nielsen wrote:
> You know this work item is a JavaScriptWorkItem?

There is no JavaScriptWorkItem anymore.

Powered by Google App Engine
This is Rietveld 408576698