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

Issue 11093015: Implement Function.apply in dart2js. (Closed)

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

Description

Implement Function.apply in dart2js. Committed: https://code.google.com/p/dart/source/detail?r=13409

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -145 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 3 chunks +6 lines, -0 lines 1 comment Download
M lib/compiler/implementation/enqueue.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 2 1 chunk +83 lines, -6 lines 0 comments Download
M lib/compiler/implementation/lib/core_patch.dart View 1 2 1 chunk +2 lines, -1 line 1 comment Download
M lib/compiler/implementation/lib/js_helper.dart View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
D tests/compiler/dart2js_native/apply_test.dart View 1 2 1 chunk +0 lines, -135 lines 0 comments Download
A tests/corelib/apply2_test.dart View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
M tests/corelib/apply_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/corelib.status View 1 2 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
8 years, 2 months ago (2012-10-09 08:24:18 UTC) #1
kasperl
Quick comment: http://codereview.chromium.org/11093015/diff/2001/tests/corelib/corelib.status File tests/corelib/corelib.status (right): http://codereview.chromium.org/11093015/diff/2001/tests/corelib/corelib.status#newcode12 tests/corelib/corelib.status:12: apply2_test: Fail # Bug 5670 dart2dart?
8 years, 2 months ago (2012-10-09 08:27:22 UTC) #2
ngeoffray
http://codereview.chromium.org/11093015/diff/2001/tests/corelib/corelib.status File tests/corelib/corelib.status (right): http://codereview.chromium.org/11093015/diff/2001/tests/corelib/corelib.status#newcode12 tests/corelib/corelib.status:12: apply2_test: Fail # Bug 5670 On 2012/10/09 08:27:22, kasperl ...
8 years, 2 months ago (2012-10-09 08:41:24 UTC) #3
kasperl
LGTM with comments: http://codereview.chromium.org/11093015/diff/6002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): http://codereview.chromium.org/11093015/diff/6002/lib/compiler/implementation/enqueue.dart#newcode106 lib/compiler/implementation/enqueue.dart:106: if (element == compiler.functionApplyMethod) { else ...
8 years, 2 months ago (2012-10-09 11:35:17 UTC) #4
ngeoffray
Thanks Kasper http://codereview.chromium.org/11093015/diff/6002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): http://codereview.chromium.org/11093015/diff/6002/lib/compiler/implementation/enqueue.dart#newcode106 lib/compiler/implementation/enqueue.dart:106: if (element == compiler.functionApplyMethod) { On 2012/10/09 ...
8 years, 2 months ago (2012-10-09 11:56:58 UTC) #5
ahe
8 years, 2 months ago (2012-10-09 12:12:26 UTC) #6
http://codereview.chromium.org/11093015/diff/4002/lib/compiler/implementation...
File lib/compiler/implementation/compiler.dart (right):

http://codereview.chromium.org/11093015/diff/4002/lib/compiler/implementation...
lib/compiler/implementation/compiler.dart:390:
functionClass.ensureResolved(this);
I think this is problematic.

http://codereview.chromium.org/11093015/diff/4002/lib/compiler/implementation...
File lib/compiler/implementation/lib/core_patch.dart (right):

http://codereview.chromium.org/11093015/diff/4002/lib/compiler/implementation...
lib/compiler/implementation/lib/core_patch.dart:37: return
Primitives.applyFunction(
If you make this function top-level, then you can use that function without
resolving any classes.

Powered by Google App Engine
This is Rietveld 408576698