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

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

Issue 2813093002: Remove BackendClasses and JavaScriptBackendClasses. (Closed)
Patch Set: . Created 3 years, 8 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/invoke_dynamic_specializers.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
index 04fc642068a7080fc1d1f4661b8ff6376ea562cb..575ec8e7dd002b98e34e50684002a561ea8cc907 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -60,8 +60,8 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
KernelAstAdapter(this.kernel, this._backend, this._resolvedAst,
this._nodeToAst, this._nodeToElement)
- : nativeBehaviorBuilder =
- new native.ResolverBehaviorBuilder(_backend.compiler) {
+ : nativeBehaviorBuilder = new native.ResolverBehaviorBuilder(
+ _backend.compiler, _backend.nativeData) {
KernelJumpTarget.index = 0;
// TODO(het): Maybe just use all of the kernel maps directly?
for (FieldElement fieldElement in kernel.fields.keys) {
@@ -147,8 +147,8 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
ConstantValue getConstantForSymbol(ir.SymbolLiteral node) {
if (kernel.syntheticNodes.contains(node)) {
- return _backend.constantSystem.createSymbol(
- _compiler.commonElements, _backend.backendClasses, node.value);
+ return _backend.constantSystem
+ .createSymbol(_compiler.commonElements, node.value);
}
ast.Node astNode = getNode(node);
ConstantValue constantValue = _backend.constants
@@ -292,8 +292,9 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
return true;
}
// TODO(sra): Recognize any combination of fixed length indexables.
- if (mask.containsOnly(closedWorld.backendClasses.fixedListClass) ||
- mask.containsOnly(closedWorld.backendClasses.constListClass) ||
+ if (mask.containsOnly(closedWorld.commonElements.jsFixedArrayClass) ||
+ mask.containsOnly(
+ closedWorld.commonElements.jsUnmodifiableArrayClass) ||
mask.containsOnlyString(closedWorld) ||
closedWorld.commonMasks.isTypedArray(mask)) {
return true;
@@ -348,8 +349,8 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
ConstantValue getConstantForType(ir.DartType irType) {
ResolutionDartType type = getDartType(irType);
- return _backend.constantSystem.createType(
- _compiler.commonElements, _backend.backendClasses, type.asRaw());
+ return _backend.constantSystem
+ .createType(_compiler.commonElements, type.asRaw());
}
bool isIntercepted(ir.Node node) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698