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

Unified Diff: lib/runtime/_classes.js

Issue 1195523002: Handle dynamic as bottom inside of function type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Bug fix Created 5 years, 6 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 | « no previous file | lib/runtime/_rtti.js » ('j') | lib/runtime/_types.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/_classes.js
diff --git a/lib/runtime/_classes.js b/lib/runtime/_classes.js
index 6f2fbd8d74758a804d58f48f34e45fd3da347d89..11205d632cf48a91514bacabc35284bea142ca41 100644
--- a/lib/runtime/_classes.js
+++ b/lib/runtime/_classes.js
@@ -118,10 +118,6 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
throwError('requires ' + length + ' or 0 type arguments');
}
let args = slice.call(arguments);
- // TODO(leafp): This should really be core.Object for
- // consistency, but Object is not attached to core
- // until the entire core library has been processed,
- // which is too late.
while (args.length < length) args.push(types.dynamic);
let value = resultMap;
@@ -175,7 +171,7 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
if (sigObj === void 0) return void 0;
let parts = sigObj[name];
if (parts === void 0) return void 0;
- return types.functionType.apply(null, parts);
+ return types.definiteFunctionType.apply(null, parts);
vsm 2015/06/17 23:14:38 Should these really be definite for instance metho
Leaf 2015/06/17 23:44:37 I don't think this affects #129. #129 has to do w
}
/// Get the type of a constructor from a class using the stored signature
@@ -189,7 +185,7 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
if (sigCtor === void 0) return void 0;
let parts = sigCtor[name];
if (parts === void 0) return void 0;
- return types.functionType.apply(null, parts);
+ return types.definiteFunctionType.apply(null, parts);
}
exports.classGetConstructorType = _getConstructorType;
@@ -230,7 +226,7 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
for (let name of names) {
rtti.tagMemoized(f[name], function() {
let parts = f[_staticSig][name];
- return types.functionType.apply(null, parts);
+ return types.definiteFunctionType.apply(null, parts);
})
}
}
« no previous file with comments | « no previous file | lib/runtime/_rtti.js » ('j') | lib/runtime/_types.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698