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

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

Issue 2919713003: Remove KernelAstAdapter.getNativeBehavior (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index 59b80fe6c55c60a396bccde3666d81ce2e809cac..3f5fb4d7fb8b98cbb664f6f056c0b883c556e10a 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -2556,7 +2556,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
emitter.generateEmbeddedGlobalAccess(globalName));
native.NativeBehavior nativeBehavior =
- astAdapter.getNativeBehavior(invocation);
+ _elementMap.getNativeBehaviorForJsEmbeddedGlobalCall(invocation);
assert(invariant(_elementMap.getSpannable(targetElement, invocation),
nativeBehavior != null,
message: "No NativeBehavior for $invocation"));
@@ -2601,7 +2601,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
}
native.NativeBehavior nativeBehavior =
- astAdapter.getNativeBehavior(invocation);
+ _elementMap.getNativeBehaviorForJsBuiltinCall(invocation);
assert(invariant(_elementMap.getSpannable(targetElement, invocation),
nativeBehavior != null,
message: "No NativeBehavior for $invocation"));
@@ -2669,7 +2669,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
}
native.NativeBehavior nativeBehavior =
- astAdapter.getNativeBehaviorForJsCall(invocation);
+ _elementMap.getNativeBehaviorForJsCall(invocation);
assert(invariant(_elementMap.getSpannable(targetElement, invocation),
nativeBehavior != null,
message: "No NativeBehavior for $invocation"));
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698