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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 23449019: Couple of backend fixes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (revision 26986)
+++ sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (working copy)
@@ -369,7 +369,9 @@
if (element.isParameter()
|| element.isFieldParameter()
|| element.isField()) {
- element = element.enclosingElement;
+ if (!canBeUsedForGlobalOptimizations(element.enclosingElement)) {
+ return false;
+ }
}
element = element.declaration;
return !isNeededForReflection(element) && !helpersUsed.contains(element);
@@ -954,6 +956,11 @@
enqueueInResolution(getFallThroughError(), elements);
}
+ void enableNoSuchMethod(Enqueuer world) {
+ enqueue(world, getCreateInvocationMirror(), compiler.globalDependencies);
+ world.registerInvocation(compiler.noSuchMethodSelector);
+ }
+
void registerSuperNoSuchMethod(TreeElements elements) {
enqueueInResolution(getCreateInvocationMirror(), elements);
enqueueInResolution(

Powered by Google App Engine
This is Rietveld 408576698