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

Unified Diff: src/compiler/raw-machine-assembler.cc

Issue 1671653002: [Interpreter] Ensure StackCheck bytecode handler is in split-edge form. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/raw-machine-assembler.cc
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc
index 0d4b8cb20079b0e28fd45fa435c6b48611e99709..11c112ca538a51d3a650e78b6187c3e59dac2436 100644
--- a/src/compiler/raw-machine-assembler.cc
+++ b/src/compiler/raw-machine-assembler.cc
@@ -52,6 +52,16 @@ Node* RawMachineAssembler::Parameter(size_t index) {
return parameters_[index];
}
+void RawMachineAssembler::Fallthrough(RawMachineLabel* label) {
+ DCHECK(current_block_ != schedule()->end());
+ RawMachineLabel fallthrough;
+
+ // This Goto dance ensures we remain in split-edge form.
+ Goto(&fallthrough);
+ Bind(label);
+ Goto(&fallthrough);
+ Bind(&fallthrough);
+}
void RawMachineAssembler::Goto(RawMachineLabel* label) {
DCHECK(current_block_ != schedule()->end());
« src/compiler/interpreter-assembler.cc ('K') | « src/compiler/raw-machine-assembler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698