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

Issue 200193002: Alternative fix for .call invocation of closures. (Closed)

Created:
6 years, 9 months ago by Florian Schneider
Modified:
6 years, 9 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, rmacnak
Visibility:
Public.

Description

Alternative fix for .call invocation of closures. This also covers "closurization" of the .call method. This relies on the fact that f.call === f if f is a closure. This means that adding a simple getter to _FunctionImpl that returns this is enough. No need for a separate dispatch. This CL reverts the previous fix for issue 12602 (modulo the additional tests). BUG=dartbug.com/17473, dartbug.com/12602 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=33736

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -88 lines) Patch
M runtime/lib/function.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 chunk +5 lines, -12 lines 0 comments Download
M runtime/vm/debugger.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/object.h View 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/vm/object.cc View 6 chunks +4 lines, -15 lines 0 comments Download
M runtime/vm/parser.h View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 2 chunks +0 lines, -51 lines 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
6 years, 9 months ago (2014-03-14 10:56:27 UTC) #1
Ivan Posva
LGTM I guess this change is not in the way of getting rid of the ...
6 years, 9 months ago (2014-03-14 16:52:55 UTC) #2
Florian Schneider
6 years, 9 months ago (2014-03-17 10:31:45 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r33736 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698