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

Unified Diff: src/code-stubs.h

Issue 1735803003: [turbofan] Adds an Allocate macro to the CodeStubAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. 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
« no previous file with comments | « no previous file | 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 ce4e94451448fe2cd831edd0ce6b1b83d7a44918..0ea0fd6b32bb4d8cc430f5f1e948a069778fe275 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -59,8 +59,6 @@ namespace internal {
V(VectorStoreIC) \
V(VectorKeyedStoreIC) \
/* HydrogenCodeStubs */ \
- V(AllocateHeapNumber) \
- V(AllocateMutableHeapNumber) \
V(AllocateInNewSpace) \
V(ArrayNArgumentsConstructor) \
V(ArrayNoArgumentConstructor) \
@@ -100,6 +98,8 @@ namespace internal {
V(KeyedLoadIC) \
V(LoadIC) \
/* TurboFanCodeStubs */ \
+ V(AllocateHeapNumber) \
+ V(AllocateMutableHeapNumber) \
V(StringLength) \
V(ToBoolean) \
/* IC Handler stubs */ \
@@ -2418,26 +2418,28 @@ class TransitionElementsKindStub : public HydrogenCodeStub {
DEFINE_HYDROGEN_CODE_STUB(TransitionElementsKind, HydrogenCodeStub);
};
-
-class AllocateHeapNumberStub final : public HydrogenCodeStub {
+class AllocateHeapNumberStub : public TurboFanCodeStub {
public:
explicit AllocateHeapNumberStub(Isolate* isolate)
- : HydrogenCodeStub(isolate) {}
+ : TurboFanCodeStub(isolate) {}
+
+ void InitializeDescriptor(CodeStubDescriptor* descriptor) override;
+ void GenerateAssembly(compiler::CodeStubAssembler* assembler) const override;
- private:
DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateHeapNumber);
- DEFINE_HYDROGEN_CODE_STUB(AllocateHeapNumber, HydrogenCodeStub);
+ DEFINE_CODE_STUB(AllocateHeapNumber, TurboFanCodeStub);
};
-
-class AllocateMutableHeapNumberStub final : public HydrogenCodeStub {
+class AllocateMutableHeapNumberStub : public TurboFanCodeStub {
public:
explicit AllocateMutableHeapNumberStub(Isolate* isolate)
- : HydrogenCodeStub(isolate) {}
+ : TurboFanCodeStub(isolate) {}
+
+ void InitializeDescriptor(CodeStubDescriptor* descriptor) override;
+ void GenerateAssembly(compiler::CodeStubAssembler* assembler) const override;
- private:
DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateMutableHeapNumber);
- DEFINE_HYDROGEN_CODE_STUB(AllocateMutableHeapNumber, HydrogenCodeStub);
+ DEFINE_CODE_STUB(AllocateMutableHeapNumber, TurboFanCodeStub);
};
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698