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

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

Issue 1408043002: Move native and js interop properties from the element model to the JS backend (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 2 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 1dfa53616256d96f4127c221e2fb30190e2455ba..b51c64d3bb477230981958953f271bb8ead18334 100644
--- a/pkg/compiler/lib/src/native/ssa.dart
+++ b/pkg/compiler/lib/src/native/ssa.dart
@@ -35,8 +35,8 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
// 3) foo() native "return 42";
// hasBody = true
bool hasBody = false;
- assert(element.isNative);
- String nativeMethodName = element.fixedBackendName;
+ assert(backend.isNative(element));
+ String nativeMethodName = backend.getFixedBackendName(element);
if (nativeBody != null) {
LiteralString jsCode = nativeBody.asLiteralString();
String str = jsCode.dartString.slowToString();

Powered by Google App Engine
This is Rietveld 408576698