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); |
}; |