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

Unified Diff: sdk/lib/_internal/lib/interceptors.dart

Issue 98053005: Re-apply: Implement tracing for function expressions and statements, and infer types of parameters … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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: sdk/lib/_internal/lib/interceptors.dart
===================================================================
--- sdk/lib/_internal/lib/interceptors.dart (revision 31185)
+++ sdk/lib/_internal/lib/interceptors.dart (working copy)
@@ -180,8 +180,7 @@
var mapTypeToInterceptor;
int findIndexForNativeSubclassType(Type type) {
- JS_EFFECT((_){ mapTypeToInterceptor = _; });
- if (mapTypeToInterceptor == null) return null;
+ if (JS('bool', '# == null', mapTypeToInterceptor)) return null;
List map = JS('JSFixedArray', '#', mapTypeToInterceptor);
for (int i = 0; i + 1 < map.length; i += 3) {
if (type == map[i]) {
@@ -195,7 +194,7 @@
var index = findIndexForNativeSubclassType(type);
if (index == null) return null;
List map = JS('JSFixedArray', '#', mapTypeToInterceptor);
- return mapTypeToInterceptor[index + 1];
+ return map[index + 1];
}
/**
@@ -208,7 +207,7 @@
var index = findIndexForNativeSubclassType(type);
if (index == null) return null;
List map = JS('JSFixedArray', '#', mapTypeToInterceptor);
- var constructorMap = mapTypeToInterceptor[index + 2];
+ var constructorMap = map[index + 2];
var constructorFn = JS('', '#[#]', constructorMap, name);
return constructorFn;
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/universe/universe.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698