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

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

Issue 2616263002: dart2js-kernel: implement rethrow (Closed)
Patch Set: format Created 3 years, 11 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/ssa/nodes.dart
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart
index 2ce5fac1f0464eb374b2f48fd39685ce0b2f7581..1852bcedd941df03dbf1b9dc11fe697364a66c4c 100644
--- a/pkg/compiler/lib/src/ssa/nodes.dart
+++ b/pkg/compiler/lib/src/ssa/nodes.dart
@@ -271,6 +271,15 @@ class HGraph {
return addConstant(closedWorld.constantSystem.createNull(), closedWorld);
}
+ HConstant addConstantUnreachable(ClosedWorld closedWorld) {
+ // A constant with an empty type used as the HInstruction of an expression
+ // in an unreachable context.
+ return addConstant(
+ new SyntheticConstantValue(
+ SyntheticConstantKind.EMPTY_VALUE, const TypeMask.nonNullEmpty()),
+ closedWorld);
+ }
+
void finalize() {
addBlock(exit);
exit.open();
« pkg/compiler/lib/src/ssa/builder_kernel.dart ('K') | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698