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

Unified Diff: dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart

Issue 740273003: Incremental compiler: support optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42234. Created 6 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
Index: dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
diff --git a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
index 50195384d2618eb6fd8b8e40bcaa1186370a1492..5039711dc44c0e14e71ad264ac8f342c6210bab6 100644
--- a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
+++ b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
@@ -363,7 +363,11 @@ class ContainerBuilder extends CodeEmitterHelper {
member.isAccessor;
String tearOffName;
- final bool canBeReflected = backend.isAccessibleByReflection(member);
+
+ final bool canBeReflected = backend.isAccessibleByReflection(member) ||
+ // During incremental compilation, we have to assume that reflection
+ // *might* get enabled.
+ compiler.hasIncrementalSupport;
if (isNotApplyTarget) {
canTearOff = false;
« no previous file with comments | « dart/pkg/compiler/lib/src/js_backend/backend.dart ('k') | dart/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698