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

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

Issue 11453032: Reapply class/method/field minification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 8 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: sdk/lib/_internal/compiler/implementation/native_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/native_handler.dart b/sdk/lib/_internal/compiler/implementation/native_handler.dart
index 825069e70f3d51f76239e9295df207e321ad28eb..9ab2ed571eefd6cf1115374c013e09551bac57ef 100644
--- a/sdk/lib/_internal/compiler/implementation/native_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/native_handler.dart
@@ -823,11 +823,11 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
// Check which pattern this native method follows:
// 1) foo() native;
- // hasBody = false, isRedirecting = false
+ // hasBody = false
// 2) foo() native "bar";
- // hasBody = false, isRedirecting = true, no longer supported.
+ // No longer supported, this is now done with @JSName('foo') and case 1.
// 3) foo() native "return 42";
- // hasBody = true, isRedirecting = false
+ // hasBody = true
bool hasBody = false;
assert(element.isNative());
String nativeMethodName = element.nativeName();

Powered by Google App Engine
This is Rietveld 408576698