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

Issue 10543027: Fixes for checked mode and change buildbot script to run dart2js tests in checked mode also. (Closed)

Created:
8 years, 6 months ago by ngeoffray
Modified:
8 years, 6 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org, ahe, karlklose, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Fixes for checked mode and change buildbot script to run dart2js tests in checked mode also. Committed: https://code.google.com/p/dart/source/detail?r=8382

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -44 lines) Patch
M frog/tests/leg_only/leg_only.status View 1 chunk +5 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 chunks +20 lines, -14 lines 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 3 chunks +3 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/tracer.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/variable_allocator.dart View 1 2 3 5 chunks +41 lines, -21 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M utils/compiler/buildbot.py View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
8 years, 6 months ago (2012-06-07 07:40:27 UTC) #1
ngeoffray
New CL updated with the removal of HCheckStatement. PTAL
8 years, 6 months ago (2012-06-07 08:27:22 UTC) #2
kasperl
It would be nice to see if you could get rid of the HCheckStatement. Somehow ...
8 years, 6 months ago (2012-06-07 08:29:14 UTC) #3
kasperl
LGTM. https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implementation/ssa/codegen.dart#newcode545 lib/compiler/implementation/ssa/codegen.dart:545: // emit an assignment. ... because? https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implementation/ssa/codegen.dart#newcode562 lib/compiler/implementation/ssa/codegen.dart:562: ...
8 years, 6 months ago (2012-06-07 08:30:50 UTC) #4
ngeoffray
8 years, 6 months ago (2012-06-07 09:02:41 UTC) #5
Thanks Kasper

https://chromiumcodereview.appspot.com/10543027/diff/2002/lib/compiler/implem...
File lib/compiler/implementation/ssa/variable_allocator.dart (right):

https://chromiumcodereview.appspot.com/10543027/diff/2002/lib/compiler/implem...
lib/compiler/implementation/ssa/variable_allocator.dart:452: if (instruction is
HParameterValue) {
On 2012/06/07 08:29:14, kasperl wrote:
> There's something a bit fishy about the control flow here. If it is an HCheck
> you don't have to check if it is a HParameterValue. Maybe you can just move
the
> HParameterValue check out of the name == null if?

Done.

https://chromiumcodereview.appspot.com/10543027/diff/2002/lib/compiler/implem...
lib/compiler/implementation/ssa/variable_allocator.dart:472:
usedNames.add(name);
On 2012/06/07 08:29:14, kasperl wrote:
> You could also create a helper function for this last part so you could do
> something ala:
> 
>    if (name !== null) return addAllocatedName(instruction, name);
> 
> thereby returning earlier and simplifying the control flow a bit.

Done.

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

https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implem...
lib/compiler/implementation/ssa/codegen.dart:545: // emit an assignment.
On 2012/06/07 08:30:50, kasperl wrote:
> ... because?

intTypeCheck just returns its argument. Done.

https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implem...
lib/compiler/implementation/ssa/codegen.dart:562: if
(!handleSimpleUpdateDefinition(instruction, name)
On 2012/06/07 08:30:50, kasperl wrote:
> Add a comment that explains what this does?

The comment is on the handleTypeConversion method.

https://chromiumcodereview.appspot.com/10543027/diff/5010/lib/compiler/implem...
lib/compiler/implementation/ssa/codegen.dart:582: HInstruction checkedInput =
argument.checkedInput;
On 2012/06/07 08:30:50, kasperl wrote:
> check.checkedInput?

Done.

Powered by Google App Engine
This is Rietveld 408576698