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

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

Issue 14783015: Fix performance regression after adding inlining support for operators, [], and []=. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (revision 22723)
+++ sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (working copy)
@@ -1127,6 +1127,12 @@
HInstruction get checkedInput => inputs[0];
bool isJsStatement() => true;
bool canThrow() => true;
+
+ HInstruction unwrap() {
+ var checked = checkedInput;
+ while (checked is HCheck) checked = checked.checkedInput;
+ return checked;
+ }
}
class HBailoutTarget extends HInstruction {

Powered by Google App Engine
This is Rietveld 408576698