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

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

Issue 2188993003: [stubs] Port CreateWeakCellStub to turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix stack overflow Created 4 years, 4 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 V(KeyedLoadIC) \ 56 V(KeyedLoadIC) \
57 V(LoadIC) \ 57 V(LoadIC) \
58 V(LoadGlobalIC) \ 58 V(LoadGlobalIC) \
59 V(FastNewObject) \ 59 V(FastNewObject) \
60 V(FastNewRestParameter) \ 60 V(FastNewRestParameter) \
61 V(FastNewSloppyArguments) \ 61 V(FastNewSloppyArguments) \
62 V(FastNewStrictArguments) \ 62 V(FastNewStrictArguments) \
63 /* HydrogenCodeStubs */ \ 63 /* HydrogenCodeStubs */ \
64 V(BinaryOpIC) \ 64 V(BinaryOpIC) \
65 V(BinaryOpWithAllocationSite) \ 65 V(BinaryOpWithAllocationSite) \
66 V(CreateWeakCell) \
67 V(ElementsTransitionAndStore) \ 66 V(ElementsTransitionAndStore) \
68 V(FastArrayPush) \ 67 V(FastArrayPush) \
69 V(FastCloneRegExp) \ 68 V(FastCloneRegExp) \
70 V(FastCloneShallowArray) \ 69 V(FastCloneShallowArray) \
71 V(FastFunctionBind) \ 70 V(FastFunctionBind) \
72 V(GrowArrayElements) \ 71 V(GrowArrayElements) \
73 V(KeyedLoadGeneric) \ 72 V(KeyedLoadGeneric) \
74 V(LoadScriptContextField) \ 73 V(LoadScriptContextField) \
75 V(LoadDictionaryElement) \ 74 V(LoadDictionaryElement) \
76 V(NameDictionaryLookup) \ 75 V(NameDictionaryLookup) \
(...skipping 15 matching lines...) Expand all
92 V(AllocateInt16x8) \ 91 V(AllocateInt16x8) \
93 V(AllocateUint16x8) \ 92 V(AllocateUint16x8) \
94 V(AllocateBool16x8) \ 93 V(AllocateBool16x8) \
95 V(AllocateInt8x16) \ 94 V(AllocateInt8x16) \
96 V(AllocateUint8x16) \ 95 V(AllocateUint8x16) \
97 V(AllocateBool8x16) \ 96 V(AllocateBool8x16) \
98 V(ArrayNoArgumentConstructor) \ 97 V(ArrayNoArgumentConstructor) \
99 V(ArraySingleArgumentConstructor) \ 98 V(ArraySingleArgumentConstructor) \
100 V(ArrayNArgumentsConstructor) \ 99 V(ArrayNArgumentsConstructor) \
101 V(CreateAllocationSite) \ 100 V(CreateAllocationSite) \
101 V(CreateWeakCell) \
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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 class CreateAllocationSiteStub : public TurboFanCodeStub { 1207 class CreateAllocationSiteStub : public TurboFanCodeStub {
1208 public: 1208 public:
1209 explicit CreateAllocationSiteStub(Isolate* isolate) 1209 explicit CreateAllocationSiteStub(Isolate* isolate)
1210 : TurboFanCodeStub(isolate) {} 1210 : TurboFanCodeStub(isolate) {}
1211 static void GenerateAheadOfTime(Isolate* isolate); 1211 static void GenerateAheadOfTime(Isolate* isolate);
1212 1212
1213 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); 1213 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite);
1214 DEFINE_TURBOFAN_CODE_STUB(CreateAllocationSite, TurboFanCodeStub); 1214 DEFINE_TURBOFAN_CODE_STUB(CreateAllocationSite, TurboFanCodeStub);
1215 }; 1215 };
1216 1216
1217 1217 class CreateWeakCellStub : public TurboFanCodeStub {
1218 class CreateWeakCellStub : public HydrogenCodeStub {
1219 public: 1218 public:
1220 explicit CreateWeakCellStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} 1219 explicit CreateWeakCellStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
1221 1220
1222 static void GenerateAheadOfTime(Isolate* isolate); 1221 static void GenerateAheadOfTime(Isolate* isolate);
1223 1222
1224 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell); 1223 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell);
1225 DEFINE_HYDROGEN_CODE_STUB(CreateWeakCell, HydrogenCodeStub); 1224 DEFINE_TURBOFAN_CODE_STUB(CreateWeakCell, TurboFanCodeStub);
1226 }; 1225 };
1227 1226
1228
1229 class GrowArrayElementsStub : public HydrogenCodeStub { 1227 class GrowArrayElementsStub : public HydrogenCodeStub {
1230 public: 1228 public:
1231 GrowArrayElementsStub(Isolate* isolate, bool is_js_array, ElementsKind kind) 1229 GrowArrayElementsStub(Isolate* isolate, bool is_js_array, ElementsKind kind)
1232 : HydrogenCodeStub(isolate) { 1230 : HydrogenCodeStub(isolate) {
1233 set_sub_minor_key(ElementsKindBits::encode(kind) | 1231 set_sub_minor_key(ElementsKindBits::encode(kind) |
1234 IsJsArrayBits::encode(is_js_array)); 1232 IsJsArrayBits::encode(is_js_array));
1235 } 1233 }
1236 1234
1237 ElementsKind elements_kind() const { 1235 ElementsKind elements_kind() const {
1238 return ElementsKindBits::decode(sub_minor_key()); 1236 return ElementsKindBits::decode(sub_minor_key());
(...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
3123 #undef DEFINE_HYDROGEN_CODE_STUB 3121 #undef DEFINE_HYDROGEN_CODE_STUB
3124 #undef DEFINE_CODE_STUB 3122 #undef DEFINE_CODE_STUB
3125 #undef DEFINE_CODE_STUB_BASE 3123 #undef DEFINE_CODE_STUB_BASE
3126 3124
3127 extern Representation RepresentationFromType(Type* type); 3125 extern Representation RepresentationFromType(Type* type);
3128 3126
3129 } // namespace internal 3127 } // namespace internal
3130 } // namespace v8 3128 } // namespace v8
3131 3129
3132 #endif // V8_CODE_STUBS_H_ 3130 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698