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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10236007: Revert "Avoid "=== true" inside code by calling a function that does this for us." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index bae88cbd528376570bbd7715ad928425410a6ee0..d1fbfe90dda8b5e5f160ab9ef98dad58a335845a 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -45,27 +45,26 @@ class Interceptors {
Element getStaticInterceptor(SourceString name, int parameters) {
String mangledName = "builtin\$${name.slowToString()}\$${parameters}";
- return compiler.findHelper(new SourceString(mangledName));
+ Element result = compiler.findHelper(new SourceString(mangledName));
+ return result;
}
Element getStaticGetInterceptor(SourceString name) {
String mangledName = "builtin\$get\$${name.slowToString()}";
- return compiler.findHelper(new SourceString(mangledName));
+ Element result = compiler.findHelper(new SourceString(mangledName));
+ return result;
}
Element getStaticSetInterceptor(SourceString name) {
String mangledName = "builtin\$set\$${name.slowToString()}";
- return compiler.findHelper(new SourceString(mangledName));
+ Element result = compiler.findHelper(new SourceString(mangledName));
+ return result;
}
Element getOperatorInterceptor(Operator op) {
SourceString name = mapOperatorToMethodName(op);
- return compiler.findHelper(name);
- }
-
- Element getBoolifiedVersionOf(Element interceptor) {
- String boolifiedName = "${interceptor.name.slowToString()}B";
- return compiler.findHelper(new SourceString(boolifiedName));
+ Element result = compiler.findHelper(name);
+ return result;
}
Element getPrefixOperatorInterceptor(Operator op) {
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698