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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 1416253002: Remove requiredTypes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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/js_backend/backend_impact.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart
index 90dba81a60a36c13749ea139a811677cca40f1d9..650645ed9ef2c1a0dfe9cf18d06a6947126c9bee 100644
--- a/pkg/compiler/lib/src/js_backend/backend_impact.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart
@@ -151,6 +151,11 @@ class BackendImpacts {
staticUses: [
helpers.compiler.symbolValidatedConstructor]);
+ BackendImpact get constSymbol => new BackendImpact(
+ instantiatedClasses: [
sigurdm 2015/10/22 09:18:03 Formatting looks weird
Johnni Winther 2015/10/22 10:31:55 But consistent through-out the file. The formattin
+ compiler.symbolClass],
+ staticUses: [
+ compiler.symbolConstructor.declaration]);
BackendImpact get incDecOperation =>
needsInt('Needed for the `+ 1` or `- 1` operation of ++/--.');
@@ -220,6 +225,8 @@ class BackendImpacts {
helpers.createRuntimeType]);
BackendImpact get stackTraceInCatch => new BackendImpact(
+ instantiatedClasses: [
+ helpers.compiler.stackTraceClass],
staticUses: [
helpers.traceFromException]);
@@ -286,4 +293,8 @@ class BackendImpacts {
// JavaScript object prototype, so we make sure
// [:defineProperty:] is compiled.
helpers.defineProperty]);
+
+ BackendImpact get closure => new BackendImpact(
+ instantiatedClasses: [
+ helpers.compiler.functionClass]);
}

Powered by Google App Engine
This is Rietveld 408576698