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

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

Issue 12499005: dart2js: Create noSuchMethod handlers at runtime to reduce overhead. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/native_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
index 6b6133d0423e479ab72f92e16c2296d333d3caa5..595b2b26eefc6fb1b6a1db1b7d6dc08185b9ba7a 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
@@ -543,4 +543,9 @@ function(cls, desc) {
targetBuffer.add(nativeBuffer);
targetBuffer.add('\n');
}
+
+ String get objectToPutNoSuchMethodHandlersOn {
+ if (handleNoSuchMethod) return "Object.prototype";
+ return emitter.objectToPutNoSuchMethodHandlersOn;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698