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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 896763003: dart2js: emit noSuchMethod stubs in the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to save. Created 5 years, 11 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: pkg/compiler/lib/src/js_emitter/model.dart
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
index 6b3ea300512ba3fef7a1f02ffc1efb29616fc4ac..e18912e039d1bca4519d463ec27a90586e095e85 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -206,9 +206,11 @@ class Class implements FieldContainer {
final List<Field> fields;
final List<StubMethod> isChecks;
- /// Stub methods for this class that are either call stubs for getters or
+ /// Stub methods for this class that are call stubs for getters.
+ final List<StubMethod> callStubs;
+
/// noSuchMethod stubs in the special case that the class is Object.
- final List<StubMethod> stubs;
+ final List<StubMethod> noSuchMethodStubs;
final List<Field> staticFieldsForReflection;
final bool onlyForRti;
final bool isDirectlyInstantiated;
@@ -228,7 +230,8 @@ class Class implements FieldContainer {
this.methods,
this.fields,
this.staticFieldsForReflection,
- this.stubs,
+ this.callStubs,
+ this.noSuchMethodStubs,
this.isChecks,
this.functionTypeIndex,
{this.onlyForRti,
@@ -269,6 +272,7 @@ class MixinApplication extends Class {
instanceFields,
staticFieldsForReflection,
callStubs,
+ const <StubMethod>[],
isChecks, functionTypeIndex,
onlyForRti: onlyForRti,
isDirectlyInstantiated: isDirectlyInstantiated,
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/class_stub_generator.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698