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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1196443002: Revert "cps-ir: Support foreign code." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
index 0ad583b63fea40de141cac19c182adf719375ce4..155831b43420f501edc578f5d8746e372e781438 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
@@ -20,10 +20,6 @@ import 'cps_ir_nodes.dart' as ir;
import 'cps_ir_builder_task.dart' show DartCapturedVariables,
GlobalProgramInformation;
-import '../common.dart' as types show TypeMask;
-import '../js/js.dart' as js show Template;
-import '../native/native.dart' show NativeBehavior;
-
/// A mapping from variable elements to their compile-time values.
///
/// Map elements denoted by parameters and local variables to the
@@ -2415,27 +2411,6 @@ class JsIrBuilder extends IrBuilder {
return addPrimitive(new ir.CreateInvocationMirror(selector, arguments));
}
- ir.Primitive buildForeignCode(js.Template codeTemplate,
- List<ir.Primitive> arguments,
- NativeBehavior behavior,
- {Element dependency}) {
- types.TypeMask type = program.getTypeMaskForForeign(behavior);
- if (codeTemplate.isExpression) {
- return _continueWithExpression((k) => new ir.ForeignCode(
- codeTemplate,
- type,
- arguments,
- behavior,
- continuation: k,
- dependency: dependency));
- } else {
- assert(isOpen);
- add(new ir.ForeignCode(codeTemplate, type, arguments, behavior,
- dependency: dependency));
- _current = null;
- }
- }
-
@override
ir.Primitive buildTypeOperator(ir.Primitive value,
DartType type,
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698