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

Unified Diff: src/compiler/instruction.h

Issue 1775323002: [turbofan] Frame elision for code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index 7da4c5f55e78034fb50a4347f7d6d0025ece13dd..4f47c90affa8d7485b253545f05958b8445e3c29 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -812,6 +812,19 @@ class Instruction final {
OutputCount() == 0 && TempCount() == 0;
}
+ bool IsDeoptimizeCall() const {
+ return arch_opcode() == ArchOpcode::kArchDeoptimize ||
+ FlagsModeField::decode(opcode()) == kFlags_deoptimize;
+ }
+
+ bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; }
+
+ bool IsBranch() const {
+ return FlagsModeField::decode(opcode()) == kFlags_branch;
+ }
+
+ bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; }
+
enum GapPosition {
START,
END,

Powered by Google App Engine
This is Rietveld 408576698