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

Unified Diff: src/code-stubs.h

Issue 1817913003: Turn StoreWithInterceptor into a turbofan stub (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
« 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 fce0d6b9488bbb1dcb41caf947a1f322c7570bf0..95e44fbc5f6e43e31211e86720e397a6464df633 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -122,6 +122,7 @@ namespace internal {
V(KeyedLoadSloppyArguments) \
V(KeyedStoreSloppyArguments) \
V(StoreField) \
+ V(StoreInterceptor) \
V(StoreGlobal) \
V(StoreTransition)
@@ -777,6 +778,18 @@ class ToBooleanStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub);
};
+class StoreInterceptorStub : public TurboFanCodeStub {
+ public:
+ explicit StoreInterceptorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ void GenerateAssembly(compiler::CodeStubAssembler* assember) const override;
+
+ Code::Kind GetCodeKind() const override { return Code::HANDLER; }
+
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Store);
+ DEFINE_CODE_STUB(StoreInterceptor, TurboFanCodeStub);
+};
+
enum StringAddFlags {
// Omit both parameter checks.
STRING_ADD_CHECK_NONE = 0,
@@ -2547,7 +2560,6 @@ class AllocateMutableHeapNumberStub : public TurboFanCodeStub {
DEFINE_CODE_STUB(AllocateMutableHeapNumber, TurboFanCodeStub);
};
-
class AllocateInNewSpaceStub final : public HydrogenCodeStub {
public:
explicit AllocateInNewSpaceStub(Isolate* 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