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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 V(ToString) \ | 49 V(ToString) \ |
50 V(ToName) \ | 50 V(ToName) \ |
51 V(ToObject) \ | 51 V(ToObject) \ |
52 V(StoreICTrampoline) \ | 52 V(StoreICTrampoline) \ |
53 V(KeyedStoreICTrampoline) \ | 53 V(KeyedStoreICTrampoline) \ |
54 V(StoreIC) \ | 54 V(StoreIC) \ |
55 V(KeyedStoreIC) \ | 55 V(KeyedStoreIC) \ |
56 /* HydrogenCodeStubs */ \ | 56 /* HydrogenCodeStubs */ \ |
57 V(BinaryOpIC) \ | 57 V(BinaryOpIC) \ |
58 V(BinaryOpWithAllocationSite) \ | 58 V(BinaryOpWithAllocationSite) \ |
59 V(CreateAllocationSite) \ | |
60 V(CreateWeakCell) \ | 59 V(CreateWeakCell) \ |
61 V(ElementsTransitionAndStore) \ | 60 V(ElementsTransitionAndStore) \ |
62 V(FastArrayPush) \ | 61 V(FastArrayPush) \ |
63 V(FastCloneRegExp) \ | 62 V(FastCloneRegExp) \ |
64 V(FastCloneShallowArray) \ | 63 V(FastCloneShallowArray) \ |
65 V(FastFunctionBind) \ | 64 V(FastFunctionBind) \ |
66 V(FastNewObject) \ | 65 V(FastNewObject) \ |
67 V(FastNewRestParameter) \ | 66 V(FastNewRestParameter) \ |
68 V(FastNewSloppyArguments) \ | 67 V(FastNewSloppyArguments) \ |
69 V(FastNewStrictArguments) \ | 68 V(FastNewStrictArguments) \ |
(...skipping 22 matching lines...) Expand all Loading... |
92 V(AllocateBool32x4) \ | 91 V(AllocateBool32x4) \ |
93 V(AllocateInt16x8) \ | 92 V(AllocateInt16x8) \ |
94 V(AllocateUint16x8) \ | 93 V(AllocateUint16x8) \ |
95 V(AllocateBool16x8) \ | 94 V(AllocateBool16x8) \ |
96 V(AllocateInt8x16) \ | 95 V(AllocateInt8x16) \ |
97 V(AllocateUint8x16) \ | 96 V(AllocateUint8x16) \ |
98 V(AllocateBool8x16) \ | 97 V(AllocateBool8x16) \ |
99 V(ArrayNoArgumentConstructor) \ | 98 V(ArrayNoArgumentConstructor) \ |
100 V(ArraySingleArgumentConstructor) \ | 99 V(ArraySingleArgumentConstructor) \ |
101 V(ArrayNArgumentsConstructor) \ | 100 V(ArrayNArgumentsConstructor) \ |
| 101 V(CreateAllocationSite) \ |
102 V(StringLength) \ | 102 V(StringLength) \ |
103 V(Add) \ | 103 V(Add) \ |
104 V(Subtract) \ | 104 V(Subtract) \ |
105 V(Multiply) \ | 105 V(Multiply) \ |
106 V(Divide) \ | 106 V(Divide) \ |
107 V(Modulus) \ | 107 V(Modulus) \ |
108 V(ShiftRight) \ | 108 V(ShiftRight) \ |
109 V(ShiftRightLogical) \ | 109 V(ShiftRightLogical) \ |
110 V(ShiftLeft) \ | 110 V(ShiftLeft) \ |
111 V(BitwiseAnd) \ | 111 V(BitwiseAnd) \ |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1197 |
1198 int length() const { return LengthBits::decode(minor_key_); } | 1198 int length() const { return LengthBits::decode(minor_key_); } |
1199 | 1199 |
1200 private: | 1200 private: |
1201 class LengthBits : public BitField<int, 0, 4> {}; | 1201 class LengthBits : public BitField<int, 0, 4> {}; |
1202 | 1202 |
1203 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject); | 1203 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject); |
1204 DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowObject, TurboFanCodeStub); | 1204 DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowObject, TurboFanCodeStub); |
1205 }; | 1205 }; |
1206 | 1206 |
1207 | 1207 class CreateAllocationSiteStub : public TurboFanCodeStub { |
1208 class CreateAllocationSiteStub : public HydrogenCodeStub { | |
1209 public: | 1208 public: |
1210 explicit CreateAllocationSiteStub(Isolate* isolate) | 1209 explicit CreateAllocationSiteStub(Isolate* isolate) |
1211 : HydrogenCodeStub(isolate) { } | 1210 : TurboFanCodeStub(isolate) {} |
1212 | |
1213 static void GenerateAheadOfTime(Isolate* isolate); | 1211 static void GenerateAheadOfTime(Isolate* isolate); |
1214 | 1212 |
1215 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); | 1213 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); |
1216 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub); | 1214 DEFINE_TURBOFAN_CODE_STUB(CreateAllocationSite, TurboFanCodeStub); |
1217 }; | 1215 }; |
1218 | 1216 |
1219 | 1217 |
1220 class CreateWeakCellStub : public HydrogenCodeStub { | 1218 class CreateWeakCellStub : public HydrogenCodeStub { |
1221 public: | 1219 public: |
1222 explicit CreateWeakCellStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 1220 explicit CreateWeakCellStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
1223 | 1221 |
1224 static void GenerateAheadOfTime(Isolate* isolate); | 1222 static void GenerateAheadOfTime(Isolate* isolate); |
1225 | 1223 |
1226 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell); | 1224 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell); |
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 #undef DEFINE_HYDROGEN_CODE_STUB | 3117 #undef DEFINE_HYDROGEN_CODE_STUB |
3120 #undef DEFINE_CODE_STUB | 3118 #undef DEFINE_CODE_STUB |
3121 #undef DEFINE_CODE_STUB_BASE | 3119 #undef DEFINE_CODE_STUB_BASE |
3122 | 3120 |
3123 extern Representation RepresentationFromType(Type* type); | 3121 extern Representation RepresentationFromType(Type* type); |
3124 | 3122 |
3125 } // namespace internal | 3123 } // namespace internal |
3126 } // namespace v8 | 3124 } // namespace v8 |
3127 | 3125 |
3128 #endif // V8_CODE_STUBS_H_ | 3126 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |