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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 12334070: Support runtime check of function types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fix Created 7 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
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 5dd792eb18d342160c6dfe1e050d1d5ed87327ee..1e9a79603e8e27ecccc28817b659301dccb319fa 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -73,7 +73,19 @@ const String DEFAULT_HELPERLIB = r'''
createRuntimeType(a) {}
createInvocationMirror(a0, a1, a2, a3, a4, a5) {}
throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}
- throwAbstractClassInstantiationError(className) {}''';
+ throwAbstractClassInstantiationError(className) {}
+ boolTypeCheck(value) {}
+ propertyTypeCheck(value, property) {}
+ interceptedTypeCheck(value, property) {}
+ functionSubtypeCast(Object object, String signatureName,
+ String contextName, var context) {}
+ checkFunctionSubtype(var target, String signatureName,
+ String contextName, var context,
+ var typeArguments) {}
+ computeSignature(var signature, var context, var contextName) {}
+ defineNativeMethodsFinish() {}
+ getRuntimeTypeArguments(target, substitutionName) {}
+ voidTypeCheck(value) {}''';
const String FOREIGN_LIBRARY = r'''
dynamic JS(String typeDescription, String codeTemplate,

Powered by Google App Engine
This is Rietveld 408576698