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

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

Issue 2680823002: Extract InterceptorData from JavaScriptBackend. (Closed)
Patch Set: Updated cf. comments 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index 3e97e0a824f22960daa27dcad9119b9622b17ea3..618c78bbbe3e9d55fdd04bb00625007260ea92e7 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -251,10 +251,11 @@ class LocalsHandler {
// and passed to the generative constructor factory function as a parameter.
// Instead of allocating and initializing the object, the constructor
// 'upgrades' the native subclass object by initializing the Dart fields.
- bool isNativeUpgradeFactory =
- element.isGenerativeConstructor && backend.isNativeOrExtendsNative(cls);
- if (backend.isInterceptedMethod(element)) {
- bool isInterceptorClass = backend.isInterceptorClass(cls.declaration);
+ bool isNativeUpgradeFactory = element.isGenerativeConstructor &&
+ backend.nativeData.isNativeOrExtendsNative(cls);
+ if (backend.interceptorData.isInterceptedMethod(element)) {
+ bool isInterceptorClass =
+ backend.interceptorData.isInterceptorClass(cls.declaration);
String name = isInterceptorClass ? 'receiver' : '_';
SyntheticLocal parameter = new SyntheticLocal(name, executableContext);
HParameterValue value = new HParameterValue(parameter, getTypeOfThis());
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698