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

Issue 9192007: Simplify equality checks and get rid of unreachable code in number and bool. (Closed)

Created:
8 years, 11 months ago by kasperl
Modified:
8 years, 11 months ago
Reviewers:
mmendez, floitsch, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Simplify equality checks and get rid of unreachable code in number and bool. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3432

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -131 lines) Patch
M compiler/lib/implementation/bool.js View 1 chunk +1 line, -1 line 0 comments Download
M compiler/lib/implementation/core.js View 3 chunks +12 lines, -20 lines 3 comments Download
M compiler/lib/implementation/number.dart View 2 chunks +3 lines, -1 line 0 comments Download
M compiler/lib/implementation/number.js View 3 chunks +50 lines, -106 lines 2 comments Download
M compiler/lib/implementation/string.js View 1 chunk +11 lines, -2 lines 1 comment Download
M tests/co19/co19-compiler.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
kasperl
I'll stop hacking on this now, but I couldn't resist simplifying the EQ checks a ...
8 years, 11 months ago (2012-01-19 10:18:42 UTC) #1
floitsch
LGTM! https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/core.js File compiler/lib/implementation/core.js (right): https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/core.js#newcode337 compiler/lib/implementation/core.js:337: return (typeof val1 != 'object') what if val1 ...
8 years, 11 months ago (2012-01-19 11:31:59 UTC) #2
kasperl
https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/core.js File compiler/lib/implementation/core.js (right): https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/core.js#newcode337 compiler/lib/implementation/core.js:337: return (typeof val1 != 'object') On 2012/01/19 11:31:59, floitsch ...
8 years, 11 months ago (2012-01-19 11:42:59 UTC) #3
ahe
DBC https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/number.js File compiler/lib/implementation/number.js (right): https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/number.js#newcode6 compiler/lib/implementation/number.js:6: function native_NumberImplementation_BIT_OR(other) { Any method that starts with ...
8 years, 11 months ago (2012-01-19 13:27:15 UTC) #4
kasperl
https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/number.js File compiler/lib/implementation/number.js (right): https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementation/number.js#newcode6 compiler/lib/implementation/number.js:6: function native_NumberImplementation_BIT_OR(other) { On 2012/01/19 13:27:16, ahe wrote: > ...
8 years, 11 months ago (2012-01-19 13:33:10 UTC) #5
mmendez
8 years, 11 months ago (2012-01-19 17:09:47 UTC) #6
lgtm

https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementa...
File compiler/lib/implementation/string.js (right):

https://chromiumcodereview.appspot.com/9192007/diff/1/compiler/lib/implementa...
compiler/lib/implementation/string.js:22: // strings floating around. The
usually stem from referencing [this]
Nit: the -> they.

Powered by Google App Engine
This is Rietveld 408576698