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

Side by Side Diff: src/code-stubs.h

Issue 2365413002: Revert of [stubs] Port SubStringStub to TurboFan (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 3094 matching lines...) Expand 10 before | Expand all | Expand 10 after
3105 3105
3106 private: 3106 private:
3107 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); } 3107 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); }
3108 3108
3109 class SaveDoublesBits : public BitField<bool, 0, 1> {}; 3109 class SaveDoublesBits : public BitField<bool, 0, 1> {};
3110 3110
3111 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); 3111 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
3112 DEFINE_PLATFORM_CODE_STUB(StoreBufferOverflow, PlatformCodeStub); 3112 DEFINE_PLATFORM_CODE_STUB(StoreBufferOverflow, PlatformCodeStub);
3113 }; 3113 };
3114 3114
3115 class SubStringStub : public TurboFanCodeStub { 3115
3116 class SubStringStub : public PlatformCodeStub {
3116 public: 3117 public:
3117 explicit SubStringStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 3118 explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3118
3119 static compiler::Node* Generate(CodeStubAssembler* assembler,
3120 compiler::Node* string, compiler::Node* from,
3121 compiler::Node* to, compiler::Node* context);
3122
3123 void GenerateAssembly(CodeStubAssembler* assembler) const override {
3124 assembler->Return(Generate(assembler,
3125 assembler->Parameter(Descriptor::kString),
3126 assembler->Parameter(Descriptor::kFrom),
3127 assembler->Parameter(Descriptor::kTo),
3128 assembler->Parameter(Descriptor::kContext)));
3129 }
3130 3119
3131 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString); 3120 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString);
3132 DEFINE_CODE_STUB(SubString, TurboFanCodeStub); 3121 DEFINE_PLATFORM_CODE_STUB(SubString, PlatformCodeStub);
3133 }; 3122 };
3134 3123
3135 class ToStringStub final : public PlatformCodeStub { 3124 class ToStringStub final : public PlatformCodeStub {
3136 public: 3125 public:
3137 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3126 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3138 3127
3139 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3128 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3140 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); 3129 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub);
3141 }; 3130 };
3142 3131
(...skipping 11 matching lines...) Expand all
3154 #undef DEFINE_HYDROGEN_CODE_STUB 3143 #undef DEFINE_HYDROGEN_CODE_STUB
3155 #undef DEFINE_CODE_STUB 3144 #undef DEFINE_CODE_STUB
3156 #undef DEFINE_CODE_STUB_BASE 3145 #undef DEFINE_CODE_STUB_BASE
3157 3146
3158 extern Representation RepresentationFromMachineType(MachineType type); 3147 extern Representation RepresentationFromMachineType(MachineType type);
3159 3148
3160 } // namespace internal 3149 } // namespace internal
3161 } // namespace v8 3150 } // namespace v8
3162 3151
3163 #endif // V8_CODE_STUBS_H_ 3152 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698