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

Issue 11199002: Remove built-in identifier 'negate' from VM (Closed)

Created:
8 years, 2 months ago by hausner
Modified:
8 years, 2 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, kasperl, siva
Visibility:
Public.

Description

Remove built-in identifier 'negate' from VM Keep the token kNEGATE for the backend to distinguish between unary and binary - operator. Committed: https://code.google.com/p/dart/source/detail?r=13700

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -67 lines) Patch
M runtime/vm/ast.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/ast_printer_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/ast_test.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/code_generator_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 chunk +8 lines, -14 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/parser.h View 3 chunks +2 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 9 chunks +23 lines, -25 lines 4 comments Download
M runtime/vm/token.h View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/token.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/language.status View 2 chunks +0 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/pseudo_kw_illegal_test.dart View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
8 years, 2 months ago (2012-10-16 18:37:36 UTC) #1
srdjan
LGTM with questions. http://codereview.chromium.org/11199002/diff/9001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): http://codereview.chromium.org/11199002/diff/9001/runtime/vm/parser.cc#newcode6616 runtime/vm/parser.cc:6616: return token == Token::kINCR || token ...
8 years, 2 months ago (2012-10-16 19:43:41 UTC) #2
hausner
Thanks! http://codereview.chromium.org/11199002/diff/9001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): http://codereview.chromium.org/11199002/diff/9001/runtime/vm/parser.cc#newcode6616 runtime/vm/parser.cc:6616: return token == Token::kINCR || token == Token::kDECR; ...
8 years, 2 months ago (2012-10-16 20:19:44 UTC) #3
ahe
8 years, 2 months ago (2012-10-17 12:26:32 UTC) #4
I'm not sure it was intentional, but this CL fixed snapshotting for dart2js.
Awesome!

Before this CL, dart2js with snapshotting would crash like this:

$ ./xcodebuild/ReleaseIA32/gen_snapshot --script_snapshot=dart2js.snapshot
lib/compiler/implementation/dart2js.dart && ./xcodebuild/ReleaseIA32/dart
--use_script_snapshot=dart2js.snapshot lib/compiler/implementation/dart2js.dart
tests/language/arithmetic_test.dart
.../dart/runtime/vm/object.cc:9803: error: unreachable code
Abort trap

After this CL, dart2js pass all language tests.

Powered by Google App Engine
This is Rietveld 408576698