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

Issue 10140027: Avoid "=== true" inside code by calling a function that does this for us. (Closed)

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

Description

Avoid "=== true" inside code by calling a function that does this for us. Committed: https://code.google.com/p/dart/source/detail?r=7000

Patch Set 1 #

Patch Set 2 : Revert change to tracer. #

Total comments: 12

Patch Set 3 : rebase. #

Patch Set 4 : Address comments and add tests #

Patch Set 5 : guaranteedType returns bool if it uses the boolified interceptor. #

Patch Set 6 : eqNullB was not correctly treated. #

Patch Set 7 : Remove super.getter since dart2js doesn't support it yet. #

Total comments: 4

Patch Set 8 : Change copyright year. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -23 lines) Patch
A frog/tests/leg/src/BoolifiedOperatorTest.dart View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
M frog/tests/leg/src/ConstantFoldingTest.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M frog/tests/leg/src/mock_compiler.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M lib/compiler/implementation/lib/js_helper.dart View 1 2 3 8 chunks +14 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 3 4 5 6 4 chunks +24 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 2 3 3 chunks +56 lines, -7 lines 0 comments Download
A tests/language/src/Operator5Test.dart View 1 2 3 4 5 6 7 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
floitsch
Still looks quite hackish, and we should probably inline the functions in the js_helpers.
8 years, 8 months ago (2012-04-24 15:03:42 UTC) #1
ngeoffray
LGTM! I actually like it. https://chromiumcodereview.appspot.com/10140027/diff/2001/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart (left): https://chromiumcodereview.appspot.com/10140027/diff/2001/lib/compiler/implementation/lib/js_helper.dart#oldcode99 lib/compiler/implementation/lib/js_helper.dart:99: return UNINTERCEPTED(a == b) ...
8 years, 8 months ago (2012-04-25 11:48:08 UTC) #2
floitsch
PTAL. https://chromiumcodereview.appspot.com/10140027/diff/2001/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart (left): https://chromiumcodereview.appspot.com/10140027/diff/2001/lib/compiler/implementation/lib/js_helper.dart#oldcode99 lib/compiler/implementation/lib/js_helper.dart:99: return UNINTERCEPTED(a == b) === true; On 2012/04/25 ...
8 years, 8 months ago (2012-04-25 16:01:49 UTC) #3
floitsch
small fixes.
8 years, 8 months ago (2012-04-25 19:53:21 UTC) #4
ngeoffray
LGTM https://chromiumcodereview.appspot.com/10140027/diff/13001/lib/compiler/implementation/ssa/nodes.dart File lib/compiler/implementation/ssa/nodes.dart (right): https://chromiumcodereview.appspot.com/10140027/diff/13001/lib/compiler/implementation/ssa/nodes.dart#newcode593 lib/compiler/implementation/ssa/nodes.dart:593: static void removeUser(HInstruction instruction, HInstruction user) { Why ...
8 years, 8 months ago (2012-04-26 08:40:00 UTC) #5
floitsch
https://chromiumcodereview.appspot.com/10140027/diff/13001/lib/compiler/implementation/ssa/nodes.dart File lib/compiler/implementation/ssa/nodes.dart (right): https://chromiumcodereview.appspot.com/10140027/diff/13001/lib/compiler/implementation/ssa/nodes.dart#newcode593 lib/compiler/implementation/ssa/nodes.dart:593: static void removeUser(HInstruction instruction, HInstruction user) { On 2012/04/26 ...
8 years, 8 months ago (2012-04-26 10:36:09 UTC) #6
ngeoffray
8 years, 8 months ago (2012-04-27 11:25:14 UTC) #7
LGTM!

Powered by Google App Engine
This is Rietveld 408576698