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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 /* HydrogenCodeStubs */ \ | 58 /* HydrogenCodeStubs */ \ |
59 V(ArrayNArgumentsConstructor) \ | 59 V(ArrayNArgumentsConstructor) \ |
60 V(BinaryOpIC) \ | 60 V(BinaryOpIC) \ |
61 V(BinaryOpWithAllocationSite) \ | 61 V(BinaryOpWithAllocationSite) \ |
62 V(CreateAllocationSite) \ | 62 V(CreateAllocationSite) \ |
63 V(CreateWeakCell) \ | 63 V(CreateWeakCell) \ |
64 V(ElementsTransitionAndStore) \ | 64 V(ElementsTransitionAndStore) \ |
65 V(FastArrayPush) \ | 65 V(FastArrayPush) \ |
66 V(FastCloneRegExp) \ | 66 V(FastCloneRegExp) \ |
67 V(FastCloneShallowArray) \ | 67 V(FastCloneShallowArray) \ |
| 68 V(FastFunctionBind) \ |
68 V(FastNewClosure) \ | 69 V(FastNewClosure) \ |
69 V(FastNewContext) \ | 70 V(FastNewContext) \ |
70 V(FastNewObject) \ | 71 V(FastNewObject) \ |
71 V(FastNewRestParameter) \ | 72 V(FastNewRestParameter) \ |
72 V(FastNewSloppyArguments) \ | 73 V(FastNewSloppyArguments) \ |
73 V(FastNewStrictArguments) \ | 74 V(FastNewStrictArguments) \ |
74 V(GrowArrayElements) \ | 75 V(GrowArrayElements) \ |
75 V(InternalArrayNArgumentsConstructor) \ | 76 V(InternalArrayNArgumentsConstructor) \ |
76 V(KeyedLoadGeneric) \ | 77 V(KeyedLoadGeneric) \ |
77 V(LoadGlobalViaContext) \ | 78 V(LoadGlobalViaContext) \ |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 | 1262 |
1262 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); | 1263 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); |
1263 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); | 1264 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); |
1264 }; | 1265 }; |
1265 | 1266 |
1266 class FastArrayPushStub : public HydrogenCodeStub { | 1267 class FastArrayPushStub : public HydrogenCodeStub { |
1267 public: | 1268 public: |
1268 explicit FastArrayPushStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 1269 explicit FastArrayPushStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
1269 | 1270 |
1270 private: | 1271 private: |
1271 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastArrayPush); | 1272 DEFINE_CALL_INTERFACE_DESCRIPTOR(VarArgFunction); |
1272 DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub); | 1273 DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub); |
1273 }; | 1274 }; |
1274 | 1275 |
| 1276 class FastFunctionBindStub : public HydrogenCodeStub { |
| 1277 public: |
| 1278 explicit FastFunctionBindStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
| 1279 |
| 1280 private: |
| 1281 DEFINE_CALL_INTERFACE_DESCRIPTOR(VarArgFunction); |
| 1282 DEFINE_HYDROGEN_CODE_STUB(FastFunctionBind, HydrogenCodeStub); |
| 1283 }; |
1275 | 1284 |
1276 enum AllocationSiteOverrideMode { | 1285 enum AllocationSiteOverrideMode { |
1277 DONT_OVERRIDE, | 1286 DONT_OVERRIDE, |
1278 DISABLE_ALLOCATION_SITES, | 1287 DISABLE_ALLOCATION_SITES, |
1279 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES | 1288 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES |
1280 }; | 1289 }; |
1281 | 1290 |
1282 | 1291 |
1283 class ArrayConstructorStub: public PlatformCodeStub { | 1292 class ArrayConstructorStub: public PlatformCodeStub { |
1284 public: | 1293 public: |
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3291 #undef DEFINE_HYDROGEN_CODE_STUB | 3300 #undef DEFINE_HYDROGEN_CODE_STUB |
3292 #undef DEFINE_CODE_STUB | 3301 #undef DEFINE_CODE_STUB |
3293 #undef DEFINE_CODE_STUB_BASE | 3302 #undef DEFINE_CODE_STUB_BASE |
3294 | 3303 |
3295 extern Representation RepresentationFromType(Type* type); | 3304 extern Representation RepresentationFromType(Type* type); |
3296 | 3305 |
3297 } // namespace internal | 3306 } // namespace internal |
3298 } // namespace v8 | 3307 } // namespace v8 |
3299 | 3308 |
3300 #endif // V8_CODE_STUBS_H_ | 3309 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |