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

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

Issue 15744017: Make int a double in argument type checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | sdk/lib/_internal/compiler/implementation/lib/native_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index e269d412c28be90bd37541a34703a3517c8164bc..aafcd7d20b040b681905d05a93b46ad5a81daef9 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1254,7 +1254,6 @@ class CodeEmitterTask extends CompilerTask {
String holder = namer.isolateAccess(backend.getImplementationClass(cls));
for (TypeCheck check in typeChecks[cls]) {
ClassElement cls = check.cls;
- buffer.write('$holder.${namer.operatorIs(check.cls)}$_=${_}true$N');
buffer.write('$holder.${namer.operatorIs(cls)}$_=${_}true$N');
Substitution substitution = check.substitution;
if (substitution != null) {
@@ -1616,6 +1615,9 @@ class CodeEmitterTask extends CompilerTask {
emitSubstitution(cls);
}
+ if (cls == backend.jsIntClass) {
ngeoffray 2013/05/24 09:34:28 I'd prefer if that was put on the interceptor clas
karlklose 2013/05/24 11:10:50 Done.
+ emitIsTest(compiler.doubleClass);
+ }
RuntimeTypes rti = backend.rti;
ClassElement superclass = cls.superclass;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/native_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698