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

Issue 9421025: Improve double implementation. (Closed)

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

Description

Improve double implementation. Committed: https://code.google.com/p/dart/source/detail?r=4430

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -281 lines) Patch
M dart/frog/leg/compile_time_constants.dart View 1 chunk +9 lines, -4 lines 0 comments Download
M dart/frog/leg/lib/js_helper.dart View 5 chunks +73 lines, -20 lines 3 comments Download
M dart/frog/leg/lib/mockimpl.dart View 1 chunk +0 lines, -58 lines 0 comments Download
M dart/frog/leg/resolver.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M dart/frog/leg/ssa/builder.dart View 1 chunk +1 line, -2 lines 0 comments Download
M dart/tests/co19/co19-leg.status View 9 chunks +82 lines, -193 lines 0 comments Download
M dart/tests/corelib/corelib-leg.status View 1 chunk +0 lines, -1 line 0 comments Download
M dart/tests/language/language-leg.status View 3 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ahe
8 years, 10 months ago (2012-02-19 22:28:34 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_helper.dart File dart/frog/leg/lib/js_helper.dart (right): https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_helper.dart#newcode746 dart/frog/leg/lib/js_helper.dart:746: return JS("double", @"$0 + 0", receiver); If you're ...
8 years, 10 months ago (2012-02-21 07:29:02 UTC) #2
ngeoffray
LGTM
8 years, 10 months ago (2012-02-21 12:10:31 UTC) #3
floitsch
DBC https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_helper.dart File dart/frog/leg/lib/js_helper.dart (right): https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_helper.dart#newcode746 dart/frog/leg/lib/js_helper.dart:746: return JS("double", @"$0 + 0", receiver); On 2012/02/21 ...
8 years, 10 months ago (2012-02-21 13:34:02 UTC) #4
ahe
Hi Kasper, Nicolas, and Florian, Thank you for your suggestions. I'll address the issue with ...
8 years, 10 months ago (2012-02-22 07:55:27 UTC) #5
ahe
8 years, 8 months ago (2012-04-20 10:51:03 UTC) #6
https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_he...
File dart/frog/leg/lib/js_helper.dart (right):

https://chromiumcodereview.appspot.com/9421025/diff/1/dart/frog/leg/lib/js_he...
dart/frog/leg/lib/js_helper.dart:746: return JS("double", @"$0 + 0", receiver);
On 2012/02/21 13:34:02, floitsch wrote:
> On 2012/02/21 07:29:02, kasperl wrote:
> > If you're going for a ToNumber conversion here, maybe simply emit +$0?
> 
> There is an is !num check just above. No need to do anything else. Just return
> the receiver.
> '+$0' is not free and we shouldn't need it here.

Follow-up in https://chromiumcodereview.appspot.com/10134004

Powered by Google App Engine
This is Rietveld 408576698