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

Unified Diff: lib/runtime/dart_runtime.js

Issue 1074923003: rename dart_runtime.js helpers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_runtime.js
diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js
index db7522ed0acf2931015d487ad346ea524b5f7cd7..680c3b7402be2b7b55de599b0d380904604659b6 100644
--- a/lib/runtime/dart_runtime.js
+++ b/lib/runtime/dart_runtime.js
@@ -68,17 +68,17 @@ var dart, _js_helper;
return f.apply(obj, args);
}
- function dinvokef(f/*, ...args*/) {
+ function dcall(f/*, ...args*/) {
let args = Array.prototype.slice.call(arguments, 1);
return checkAndCall(f, void 0, args, 'call');
}
- dart.dinvokef = dinvokef;
+ dart.dcall = dcall;
- function dinvoke(obj, method/*, ...args*/) {
+ function dsend(obj, method/*, ...args*/) {
let args = Array.prototype.slice.call(arguments, 2);
return checkAndCall(obj[method], obj, args, method);
}
- dart.dinvoke = dinvoke;
+ dart.dinvoke = dsend;
function dindex(obj, index) {
return checkAndCall(obj.get, obj, [index], '[]');
@@ -90,11 +90,6 @@ var dart, _js_helper;
}
dart.dsetindex = dindex;
- function dbinary(left, op, right) {
- return checkAndCall(left[op], left, [right], op);
- }
- dart.dbinary = dbinary;
-
function cast(obj, type) {
// TODO(vsm): handle non-nullable types
if (obj == null) return obj;
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698