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

Unified Diff: pkg/compiler/lib/src/native/ssa.dart

Issue 2721403006: Split NativeData (Closed)
Patch Set: Created 3 years, 10 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/native/ssa.dart
diff --git a/pkg/compiler/lib/src/native/ssa.dart b/pkg/compiler/lib/src/native/ssa.dart
index ed6656356576f043c7fb5297c8dd0a9402dc5dc0..970a7e64a5a97a7a4b07fbb4db1c66aec286544c 100644
--- a/pkg/compiler/lib/src/native/ssa.dart
+++ b/pkg/compiler/lib/src/native/ssa.dart
@@ -47,7 +47,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
// 3) foo() native "return 42";
// hasBody = true
bool hasBody = false;
- assert(backend.isNative(element));
+ assert(backend.nativeData.isNativeMember(element));
String nativeMethodName = backend.nativeData.getFixedBackendName(element);
if (nativeBody != null) {
LiteralString jsCode = nativeBody.asLiteralString();

Powered by Google App Engine
This is Rietveld 408576698