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

Unified Diff: pkg/fletchc/lib/src/fletch_context.dart

Issue 1450393002: Roll sdk dependency to 34357cdad108dcba734949bd13bd28c76ea285e0 (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Address ahe's review Created 5 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
« no previous file with comments | « pkg/fletchc/lib/src/fletch_compiler_implementation.dart ('k') | pkg/fletchc/lib/src/fletch_enqueuer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/fletch_context.dart
diff --git a/pkg/fletchc/lib/src/fletch_context.dart b/pkg/fletchc/lib/src/fletch_context.dart
index 4a6aa93e467bd47a2e068c6e0834576972009c06..163ebf8f20b2b2231b356c3d6cafc4caf26cf28e 100644
--- a/pkg/fletchc/lib/src/fletch_context.dart
+++ b/pkg/fletchc/lib/src/fletch_context.dart
@@ -31,6 +31,9 @@ import 'package:compiler/src/constants/values.dart' show
ConstructedConstantValue,
FunctionConstantValue;
+import 'package:compiler/src/common/names.dart' show
+ Names;
+
import 'fletch_compiler_implementation.dart' show
FletchCompilerImplementation;
@@ -136,17 +139,16 @@ class FletchContext {
}
String getSymbolForFunction(
- String name,
- FunctionSignature signature,
- LibraryElement library) {
+ Name name,
+ FunctionSignature signature) {
StringBuffer buffer = new StringBuffer();
- buffer.write(mangleName(new Name(name, library)));
+ buffer.write(mangleName(name));
writeNamedArguments(buffer, signature);
return buffer.toString();
}
String getCallSymbol(FunctionSignature signature) {
- return getSymbolForFunction('call', signature, null);
+ return getSymbolForFunction(Names.call, signature);
}
int getSymbolId(String symbol) {
« no previous file with comments | « pkg/fletchc/lib/src/fletch_compiler_implementation.dart ('k') | pkg/fletchc/lib/src/fletch_enqueuer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698