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

Unified Diff: lib/compiler/implementation/native_handler.dart

Issue 10915104: Move namer into javascript backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index 18a67d7d6150d143cf6a91e9fb5049687c8941a0..ff935cacb2cc70e29c883e043d32f96a6ee6a978 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -300,7 +300,8 @@ void generateMethodWithPrototypeCheckForElement(Compiler compiler,
String code,
String parameters) {
String methodName;
- Namer namer = compiler.namer;
+ JavaScriptBackend backend = compiler.backend;
+ Namer namer = backend.namer;
if (element.kind == ElementKind.FUNCTION) {
FunctionSignature signature = element.computeSignature(compiler);
methodName = namer.instanceMethodName(

Powered by Google App Engine
This is Rietveld 408576698