| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index 576773ce8ebfd4196a0f1667d3298146dce94b1a..07185a7e57ad2bc755e0712536d14c31aa9e6e17 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -3124,24 +3124,13 @@ class StoreBufferOverflowStub : public PlatformCodeStub {
|
| DEFINE_PLATFORM_CODE_STUB(StoreBufferOverflow, PlatformCodeStub);
|
| };
|
|
|
| -class SubStringStub : public TurboFanCodeStub {
|
| - public:
|
| - explicit SubStringStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
|
| -
|
| - static compiler::Node* Generate(CodeStubAssembler* assembler,
|
| - compiler::Node* string, compiler::Node* from,
|
| - compiler::Node* to, compiler::Node* context);
|
|
|
| - void GenerateAssembly(CodeStubAssembler* assembler) const override {
|
| - assembler->Return(Generate(assembler,
|
| - assembler->Parameter(Descriptor::kString),
|
| - assembler->Parameter(Descriptor::kFrom),
|
| - assembler->Parameter(Descriptor::kTo),
|
| - assembler->Parameter(Descriptor::kContext)));
|
| - }
|
| +class SubStringStub : public PlatformCodeStub {
|
| + public:
|
| + explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
|
|
|
| DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString);
|
| - DEFINE_CODE_STUB(SubString, TurboFanCodeStub);
|
| + DEFINE_PLATFORM_CODE_STUB(SubString, PlatformCodeStub);
|
| };
|
|
|
| class ToStringStub final : public PlatformCodeStub {
|
|
|