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

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

Issue 2375493002: Version 5.5.289.1 (cherry-pick) (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 3106 matching lines...) Expand 10 before | Expand all | Expand 10 after
3117 3117
3118 private: 3118 private:
3119 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); } 3119 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); }
3120 3120
3121 class SaveDoublesBits : public BitField<bool, 0, 1> {}; 3121 class SaveDoublesBits : public BitField<bool, 0, 1> {};
3122 3122
3123 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); 3123 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
3124 DEFINE_PLATFORM_CODE_STUB(StoreBufferOverflow, PlatformCodeStub); 3124 DEFINE_PLATFORM_CODE_STUB(StoreBufferOverflow, PlatformCodeStub);
3125 }; 3125 };
3126 3126
3127 class SubStringStub : public TurboFanCodeStub { 3127
3128 class SubStringStub : public PlatformCodeStub {
3128 public: 3129 public:
3129 explicit SubStringStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 3130 explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3130
3131 static compiler::Node* Generate(CodeStubAssembler* assembler,
3132 compiler::Node* string, compiler::Node* from,
3133 compiler::Node* to, compiler::Node* context);
3134
3135 void GenerateAssembly(CodeStubAssembler* assembler) const override {
3136 assembler->Return(Generate(assembler,
3137 assembler->Parameter(Descriptor::kString),
3138 assembler->Parameter(Descriptor::kFrom),
3139 assembler->Parameter(Descriptor::kTo),
3140 assembler->Parameter(Descriptor::kContext)));
3141 }
3142 3131
3143 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString); 3132 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString);
3144 DEFINE_CODE_STUB(SubString, TurboFanCodeStub); 3133 DEFINE_PLATFORM_CODE_STUB(SubString, PlatformCodeStub);
3145 }; 3134 };
3146 3135
3147 class ToStringStub final : public PlatformCodeStub { 3136 class ToStringStub final : public PlatformCodeStub {
3148 public: 3137 public:
3149 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3138 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3150 3139
3151 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3140 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3152 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); 3141 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub);
3153 }; 3142 };
3154 3143
(...skipping 11 matching lines...) Expand all
3166 #undef DEFINE_HYDROGEN_CODE_STUB 3155 #undef DEFINE_HYDROGEN_CODE_STUB
3167 #undef DEFINE_CODE_STUB 3156 #undef DEFINE_CODE_STUB
3168 #undef DEFINE_CODE_STUB_BASE 3157 #undef DEFINE_CODE_STUB_BASE
3169 3158
3170 extern Representation RepresentationFromMachineType(MachineType type); 3159 extern Representation RepresentationFromMachineType(MachineType type);
3171 3160
3172 } // namespace internal 3161 } // namespace internal
3173 } // namespace v8 3162 } // namespace v8
3174 3163
3175 #endif // V8_CODE_STUBS_H_ 3164 #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