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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 public: | 1267 public: |
1268 FastCloneShallowArrayStub(Isolate* isolate, | 1268 FastCloneShallowArrayStub(Isolate* isolate, |
1269 AllocationSiteMode allocation_site_mode) | 1269 AllocationSiteMode allocation_site_mode) |
1270 : TurboFanCodeStub(isolate) { | 1270 : TurboFanCodeStub(isolate) { |
1271 minor_key_ = AllocationSiteModeBits::encode(allocation_site_mode); | 1271 minor_key_ = AllocationSiteModeBits::encode(allocation_site_mode); |
1272 } | 1272 } |
1273 | 1273 |
1274 static compiler::Node* Generate(CodeStubAssembler* assembler, | 1274 static compiler::Node* Generate(CodeStubAssembler* assembler, |
1275 compiler::Node* closure, | 1275 compiler::Node* closure, |
1276 compiler::Node* literal_index, | 1276 compiler::Node* literal_index, |
1277 compiler::Node* constant_elements, | |
1278 compiler::Node* context, | 1277 compiler::Node* context, |
1279 AllocationSiteMode allocation_site_mode); | 1278 AllocationSiteMode allocation_site_mode, |
| 1279 CodeStubAssembler::Label* call_runtime); |
1280 | 1280 |
1281 AllocationSiteMode allocation_site_mode() const { | 1281 AllocationSiteMode allocation_site_mode() const { |
1282 return AllocationSiteModeBits::decode(minor_key_); | 1282 return AllocationSiteModeBits::decode(minor_key_); |
1283 } | 1283 } |
1284 | 1284 |
1285 private: | 1285 private: |
1286 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {}; | 1286 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {}; |
1287 | 1287 |
1288 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray); | 1288 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray); |
1289 DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowArray, TurboFanCodeStub); | 1289 DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowArray, TurboFanCodeStub); |
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3212 #undef DEFINE_HYDROGEN_CODE_STUB | 3212 #undef DEFINE_HYDROGEN_CODE_STUB |
3213 #undef DEFINE_CODE_STUB | 3213 #undef DEFINE_CODE_STUB |
3214 #undef DEFINE_CODE_STUB_BASE | 3214 #undef DEFINE_CODE_STUB_BASE |
3215 | 3215 |
3216 extern Representation RepresentationFromMachineType(MachineType type); | 3216 extern Representation RepresentationFromMachineType(MachineType type); |
3217 | 3217 |
3218 } // namespace internal | 3218 } // namespace internal |
3219 } // namespace v8 | 3219 } // namespace v8 |
3220 | 3220 |
3221 #endif // V8_CODE_STUBS_H_ | 3221 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |