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

Unified Diff: src/interpreter/bytecodes.cc

Issue 2118183002: [interpeter] Move to table based peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Attempt gn build. Created 4 years, 5 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/interpreter/bytecodes.cc
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
index 825014e465613ecb0073f5511ae333931e481ec2..9f126bcb58b67a60c066c834f99fea33beebd9b5 100644
--- a/src/interpreter/bytecodes.cc
+++ b/src/interpreter/bytecodes.cc
@@ -474,11 +474,6 @@ bool Bytecodes::IsLdarOrStar(Bytecode bytecode) {
}
// static
-bool Bytecodes::IsLdaSmiOrLdaZero(Bytecode bytecode) {
- return bytecode == Bytecode::kLdaSmi || bytecode == Bytecode::kLdaZero;
-}
-
-// static
bool Bytecodes::IsBytecodeWithScalableOperands(Bytecode bytecode) {
switch (bytecode) {
#define CASE(Name, ...) \
@@ -506,6 +501,11 @@ bool Bytecodes::IsPrefixScalingBytecode(Bytecode bytecode) {
}
// static
+bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) {
+ return bytecode == Bytecode::kToName || bytecode == Bytecode::kTypeOf;
+}
+
+// static
bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) {
return bytecode == Bytecode::kReturn || IsJump(bytecode);
}

Powered by Google App Engine
This is Rietveld 408576698