| OLD | NEW |
| 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 int skip_stub_frame() const { return SkipStubFrameBits::decode(minor_key_); } | 1162 int skip_stub_frame() const { return SkipStubFrameBits::decode(minor_key_); } |
| 1163 | 1163 |
| 1164 private: | 1164 private: |
| 1165 class SkipStubFrameBits : public BitField<bool, 0, 1> {}; | 1165 class SkipStubFrameBits : public BitField<bool, 0, 1> {}; |
| 1166 }; | 1166 }; |
| 1167 | 1167 |
| 1168 class FastCloneRegExpStub final : public TurboFanCodeStub { | 1168 class FastCloneRegExpStub final : public TurboFanCodeStub { |
| 1169 public: | 1169 public: |
| 1170 explicit FastCloneRegExpStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 1170 explicit FastCloneRegExpStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 1171 | 1171 |
| 1172 static compiler::Node* Generate(CodeStubAssembler* assembler, |
| 1173 compiler::Node* closure, |
| 1174 compiler::Node* literal_index, |
| 1175 compiler::Node* pattern, |
| 1176 compiler::Node* flags, |
| 1177 compiler::Node* context); |
| 1178 |
| 1172 private: | 1179 private: |
| 1173 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneRegExp); | 1180 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneRegExp); |
| 1174 DEFINE_TURBOFAN_CODE_STUB(FastCloneRegExp, TurboFanCodeStub); | 1181 DEFINE_TURBOFAN_CODE_STUB(FastCloneRegExp, TurboFanCodeStub); |
| 1175 }; | 1182 }; |
| 1176 | 1183 |
| 1177 | 1184 |
| 1178 class FastCloneShallowArrayStub : public HydrogenCodeStub { | 1185 class FastCloneShallowArrayStub : public HydrogenCodeStub { |
| 1179 public: | 1186 public: |
| 1180 FastCloneShallowArrayStub(Isolate* isolate, | 1187 FastCloneShallowArrayStub(Isolate* isolate, |
| 1181 AllocationSiteMode allocation_site_mode) | 1188 AllocationSiteMode allocation_site_mode) |
| (...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3136 #undef DEFINE_HYDROGEN_CODE_STUB | 3143 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3137 #undef DEFINE_CODE_STUB | 3144 #undef DEFINE_CODE_STUB |
| 3138 #undef DEFINE_CODE_STUB_BASE | 3145 #undef DEFINE_CODE_STUB_BASE |
| 3139 | 3146 |
| 3140 extern Representation RepresentationFromType(Type* type); | 3147 extern Representation RepresentationFromType(Type* type); |
| 3141 | 3148 |
| 3142 } // namespace internal | 3149 } // namespace internal |
| 3143 } // namespace v8 | 3150 } // namespace v8 |
| 3144 | 3151 |
| 3145 #endif // V8_CODE_STUBS_H_ | 3152 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |