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

Unified Diff: src/code-stubs.h

Issue 1901083002: [Interpreter] Introduce IncStub and DecStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index baad56bce94f1d6d983922a1a4f915fb6e6c2901..d3d64bf68eaa61370503cbf649e8544d9c0b24d4 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -120,6 +120,8 @@ namespace internal {
V(BitwiseAnd) \
V(BitwiseOr) \
V(BitwiseXor) \
+ V(Inc) \
+ V(Dec) \
V(FastCloneShallowObject) \
V(LessThan) \
V(LessThanOrEqual) \
@@ -776,6 +778,22 @@ class BitwiseXorStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseXor, TurboFanCodeStub);
};
+class IncStub final : public TurboFanCodeStub {
+ public:
+ explicit IncStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
+ DEFINE_TURBOFAN_CODE_STUB(Inc, TurboFanCodeStub);
+};
+
+class DecStub final : public TurboFanCodeStub {
+ public:
+ explicit DecStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
+ DEFINE_TURBOFAN_CODE_STUB(Dec, TurboFanCodeStub);
+};
+
class LessThanStub final : public TurboFanCodeStub {
public:
explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698