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

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

Issue 2370693002: [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Fix registers on arm/arm64. Created 4 years, 2 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
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 V(InternalArrayNoArgumentConstructor) \ 129 V(InternalArrayNoArgumentConstructor) \
130 V(InternalArraySingleArgumentConstructor) \ 130 V(InternalArraySingleArgumentConstructor) \
131 V(Dec) \ 131 V(Dec) \
132 V(ElementsTransitionAndStore) \ 132 V(ElementsTransitionAndStore) \
133 V(FastCloneRegExp) \ 133 V(FastCloneRegExp) \
134 V(FastCloneShallowArray) \ 134 V(FastCloneShallowArray) \
135 V(FastCloneShallowObject) \ 135 V(FastCloneShallowObject) \
136 V(FastNewClosure) \ 136 V(FastNewClosure) \
137 V(FastNewFunctionContext) \ 137 V(FastNewFunctionContext) \
138 V(InstanceOf) \ 138 V(InstanceOf) \
139 V(InstanceOfWithFeedback) \
139 V(LessThan) \ 140 V(LessThan) \
140 V(LessThanOrEqual) \ 141 V(LessThanOrEqual) \
141 V(GreaterThan) \ 142 V(GreaterThan) \
142 V(GreaterThanOrEqual) \ 143 V(GreaterThanOrEqual) \
143 V(Equal) \ 144 V(Equal) \
144 V(NotEqual) \ 145 V(NotEqual) \
145 V(KeyedLoadSloppyArguments) \ 146 V(KeyedLoadSloppyArguments) \
146 V(KeyedStoreSloppyArguments) \ 147 V(KeyedStoreSloppyArguments) \
147 V(LoadScriptContextField) \ 148 V(LoadScriptContextField) \
148 V(StoreScriptContextField) \ 149 V(StoreScriptContextField) \
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 917
917 class InstanceOfStub final : public TurboFanCodeStub { 918 class InstanceOfStub final : public TurboFanCodeStub {
918 public: 919 public:
919 explicit InstanceOfStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 920 explicit InstanceOfStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
920 921
921 private: 922 private:
922 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 923 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
923 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(InstanceOf, TurboFanCodeStub); 924 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(InstanceOf, TurboFanCodeStub);
924 }; 925 };
925 926
927 class InstanceOfWithFeedbackStub final : public TurboFanCodeStub {
928 public:
929 explicit InstanceOfWithFeedbackStub(Isolate* isolate)
930 : TurboFanCodeStub(isolate) {}
931
932 private:
933 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOpWithVector);
934 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB_WITH_FEEDBACK(InstanceOfWithFeedback,
935 TurboFanCodeStub);
936 };
937
926 class LessThanStub final : public TurboFanCodeStub { 938 class LessThanStub final : public TurboFanCodeStub {
927 public: 939 public:
928 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 940 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
929 941
930 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 942 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
931 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(LessThan, TurboFanCodeStub); 943 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(LessThan, TurboFanCodeStub);
932 }; 944 };
933 945
934 class LessThanOrEqualStub final : public TurboFanCodeStub { 946 class LessThanOrEqualStub final : public TurboFanCodeStub {
935 public: 947 public:
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
3154 #undef DEFINE_HYDROGEN_CODE_STUB 3166 #undef DEFINE_HYDROGEN_CODE_STUB
3155 #undef DEFINE_CODE_STUB 3167 #undef DEFINE_CODE_STUB
3156 #undef DEFINE_CODE_STUB_BASE 3168 #undef DEFINE_CODE_STUB_BASE
3157 3169
3158 extern Representation RepresentationFromMachineType(MachineType type); 3170 extern Representation RepresentationFromMachineType(MachineType type);
3159 3171
3160 } // namespace internal 3172 } // namespace internal
3161 } // namespace v8 3173 } // namespace v8
3162 3174
3163 #endif // V8_CODE_STUBS_H_ 3175 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698