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

Unified Diff: dart/frog/leg/ssa/builder.dart

Issue 9373043: Move helpers and interceptors to own library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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: dart/frog/leg/ssa/builder.dart
diff --git a/dart/frog/leg/ssa/builder.dart b/dart/frog/leg/ssa/builder.dart
index a988b2be9fab839248cb8ea06fe8fa4e0d5041e7..0a9619ab546f65efca3fcee829122c6c50385a2d 100644
--- a/dart/frog/leg/ssa/builder.dart
+++ b/dart/frog/leg/ssa/builder.dart
@@ -45,43 +45,43 @@ class Interceptors {
Element getStaticInterceptor(SourceString name, int parameters) {
String mangledName = "builtin\$${name}\$${parameters}";
- Element result = compiler.coreLibrary.find(new SourceString(mangledName));
+ Element result = compiler.findHelper(new SourceString(mangledName));
return result;
}
Element getStaticGetInterceptor(SourceString name) {
String mangledName = "builtin\$get\$${name}";
- Element result = compiler.coreLibrary.find(new SourceString(mangledName));
+ Element result = compiler.findHelper(new SourceString(mangledName));
return result;
}
Element getOperatorInterceptor(Operator op) {
SourceString name = mapOperatorToMethodName(op);
- Element result = compiler.coreLibrary.find(name);
+ Element result = compiler.findHelper(name);
return result;
}
Element getPrefixOperatorInterceptor(Operator op) {
String name = op.source.stringValue;
if (name === '~') {
- return compiler.coreLibrary.find(const SourceString('not'));
+ return compiler.findHelper(const SourceString('not'));
}
if (name === '-') {
- return compiler.coreLibrary.find(const SourceString('neg'));
+ return compiler.findHelper(const SourceString('neg'));
}
compiler.unimplemented('Unknown operator', node: op);
}
Element getIndexInterceptor() {
- return compiler.coreLibrary.find(const SourceString('index'));
+ return compiler.findHelper(const SourceString('index'));
}
Element getIndexAssignmentInterceptor() {
- return compiler.coreLibrary.find(const SourceString('indexSet'));
+ return compiler.findHelper(const SourceString('indexSet'));
}
Element getEqualsNullInterceptor() {
- return compiler.coreLibrary.find(const SourceString('eqNull'));
+ return compiler.findHelper(const SourceString('eqNull'));
}
}

Powered by Google App Engine
This is Rietveld 408576698