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

Unified Diff: lib/runtime/dart/_js_helper.js

Issue 1142293002: Use dart.tearoff helper at tearoff sites (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Clean up conditional Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index 37366a073f5d73e824a872c08d625c0a543c39cb..70db41974aec3013d7d2078e57ce0fa0d88fa343 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -2844,7 +2844,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
};
}(functionType);
} else if (!dart.notNull(isStatic) && typeof functionType == "function") {
- let getReceiver = isIntercepted ? _foreign_helper.RAW_DART_FUNCTION_REF(dart.bind(BoundClosure, 'receiverOf')) : _foreign_helper.RAW_DART_FUNCTION_REF(dart.bind(BoundClosure, 'selfOf'));
+ let getReceiver = isIntercepted ? _foreign_helper.RAW_DART_FUNCTION_REF(BoundClosure.receiverOf) : _foreign_helper.RAW_DART_FUNCTION_REF(BoundClosure.selfOf);
signatureFunction = function(f, r) {
return function() {
return f.apply({$receiver: r(this)}, arguments$);
@@ -2866,7 +2866,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
return constructor;
}
static cspForwardCall(arity, isSuperCall, stubName, func) {
- let getSelf = _foreign_helper.RAW_DART_FUNCTION_REF(dart.bind(BoundClosure, 'selfOf'));
+ let getSelf = _foreign_helper.RAW_DART_FUNCTION_REF(BoundClosure.selfOf);
if (isSuperCall)
arity = -1;
switch (arity) {
@@ -2957,8 +2957,8 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
})()}` + '}')();
}
static cspForwardInterceptedCall(arity, isSuperCall, name, func) {
- let getSelf = _foreign_helper.RAW_DART_FUNCTION_REF(dart.bind(BoundClosure, 'selfOf'));
- let getReceiver = _foreign_helper.RAW_DART_FUNCTION_REF(dart.bind(BoundClosure, 'receiverOf'));
+ let getSelf = _foreign_helper.RAW_DART_FUNCTION_REF(BoundClosure.selfOf);
+ let getReceiver = _foreign_helper.RAW_DART_FUNCTION_REF(BoundClosure.receiverOf);
if (isSuperCall)
arity = -1;
switch (arity) {

Powered by Google App Engine
This is Rietveld 408576698