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

Unified Diff: src/compiler/control-builders.cc

Issue 1155103004: [turbofan] New operator for loads of DYNAMIC_[GLOBAL,LOCAL]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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: src/compiler/control-builders.cc
diff --git a/src/compiler/control-builders.cc b/src/compiler/control-builders.cc
index 0e4f1683b86668d5d623f88a56f192cad4bd6ada..a5e3d2ffc3a1a956ddbc3142a65a50496626197d 100644
--- a/src/compiler/control-builders.cc
+++ b/src/compiler/control-builders.cc
@@ -149,6 +149,16 @@ void BlockBuilder::EndBlock() {
}
+void BlockBuilder::BreakUnless(Node* condition, BranchHint hint) {
+ IfBuilder control_if(builder_);
+ control_if.If(condition, hint);
+ control_if.Then();
+ control_if.Else();
+ Break();
+ control_if.End();
+}
+
+
void TryCatchBuilder::BeginTry() {
catch_environment_ = environment()->CopyAsUnreachable();
catch_environment_->Push(the_hole());

Powered by Google App Engine
This is Rietveld 408576698