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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10539106: Simplify generated code for trivial bailout methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: lib/compiler/implementation/ssa/nodes.dart
===================================================================
--- lib/compiler/implementation/ssa/nodes.dart (revision 8532)
+++ lib/compiler/implementation/ssa/nodes.dart (working copy)
@@ -984,6 +984,10 @@
final int state;
final HType guardedType;
bool isOn = false;
+ // A list of sorted variable names to be able to share a common
+ // environment between type guards with the same [state].
+ List<String> sortedVariableNames;
+
HTypeGuard(this.guardedType, this.state, List<HInstruction> env) : super(env);
void prepareGvn() {
@@ -2490,6 +2494,10 @@
return condition.start;
}
+ HBasicBlock get loopHeader() {
+ return kind == DO_WHILE_LOOP ? body.start : condition.start;
+ }
+
HBasicBlock get end() {
if (updates !== null) return updates.end;
if (kind == DO_WHILE_LOOP) {
« lib/compiler/implementation/ssa/codegen.dart ('K') | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698