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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 3df86b844422fbf37d09cf3f9aec5ffc0b6b9d5d..364e2c57e015d1e66715754ffa124c9a6f3f5aba 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -8,6 +8,7 @@ import '../constants/values.dart' show ConstantValue;
import '../deferred_load.dart' show OutputUnit;
import '../elements/entities.dart';
import '../js/js.dart' as js show Expression, Name, Statement, TokenFinalizer;
+import '../js/js_debug.dart' as js show nodeToString;
import 'js_emitter.dart' show MetadataCollector;
class Program {
@@ -483,6 +484,10 @@ class InstanceMethod extends DartMethod {
class StubMethod extends Method {
StubMethod(js.Name name, js.Expression code, {MemberEntity element})
: super(element, name, code);
+
+ String toString() {
+ return 'stub[name=${name},element=${element},code=${js.nodeToString(code)}]';
+ }
}
/// A stub that adapts and redirects to the main method (the one containing)
@@ -537,6 +542,10 @@ class StaticDartMethod extends DartMethod implements StaticMethod {
functionType: functionType);
bool get isStatic => true;
+
+ String toString() {
+ return 'static_method[name=${name},element=${element}}]';
+ }
}
class StaticStubMethod extends StubMethod implements StaticMethod {

Powered by Google App Engine
This is Rietveld 408576698