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

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

Issue 10825386: Use JavaScript runtime semantics when constant folding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « lib/compiler/implementation/leg.dart ('k') | lib/compiler/implementation/operations.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index 65500cb0ba13582f4f4793f1d2031f4dba73ce52..18a67d7d6150d143cf6a91e9fb5049687c8941a0 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -195,7 +195,9 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
HInstruction convertDartClosure(Element parameter, FunctionType type) {
HInstruction local = builder.localsHandler.readLocal(parameter);
- HInstruction arity = builder.graph.addConstantInt(type.computeArity());
+ Constant arityConstant =
+ builder.constantSystem.createInt(type.computeArity());
+ HInstruction arity = builder.graph.addConstant(arityConstant);
// TODO(ngeoffray): For static methods, we could pass a method with a
// defined arity.
Element helper = builder.interceptors.getClosureConverter();
« no previous file with comments | « lib/compiler/implementation/leg.dart ('k') | lib/compiler/implementation/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698