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

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

Issue 2146293003: [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix IsComparisonOpcode Created 4 years, 5 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 V(StringLessThanOrEqual) \ 133 V(StringLessThanOrEqual) \
134 V(StringGreaterThan) \ 134 V(StringGreaterThan) \
135 V(StringGreaterThanOrEqual) \ 135 V(StringGreaterThanOrEqual) \
136 V(ToBoolean) \ 136 V(ToBoolean) \
137 V(ToInteger) \ 137 V(ToInteger) \
138 V(ToLength) \ 138 V(ToLength) \
139 V(HasProperty) \ 139 V(HasProperty) \
140 V(GetProperty) \ 140 V(GetProperty) \
141 V(LoadICTrampolineTF) \ 141 V(LoadICTrampolineTF) \
142 V(LoadICTF) \ 142 V(LoadICTF) \
143 V(SameValueZero) \
143 /* IC Handler stubs */ \ 144 /* IC Handler stubs */ \
144 V(KeyedLoadSloppyArguments) \ 145 V(KeyedLoadSloppyArguments) \
145 V(KeyedStoreSloppyArguments) \ 146 V(KeyedStoreSloppyArguments) \
146 V(LoadApiGetter) \ 147 V(LoadApiGetter) \
147 V(LoadConstant) \ 148 V(LoadConstant) \
148 V(LoadFastElement) \ 149 V(LoadFastElement) \
149 V(LoadField) \ 150 V(LoadField) \
150 V(LoadIndexedInterceptor) \ 151 V(LoadIndexedInterceptor) \
151 V(StoreField) \ 152 V(StoreField) \
152 V(StoreGlobal) \ 153 V(StoreGlobal) \
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 }; 868 };
868 869
869 class StrictEqualStub final : public TurboFanCodeStub { 870 class StrictEqualStub final : public TurboFanCodeStub {
870 public: 871 public:
871 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 872 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
872 873
873 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 874 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
874 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictEqual, TurboFanCodeStub); 875 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictEqual, TurboFanCodeStub);
875 }; 876 };
876 877
878 class SameValueZeroStub final : public TurboFanCodeStub {
879 public:
880 explicit SameValueZeroStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
881
882 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
883 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(SameValueZero, TurboFanCodeStub);
884 };
885
877 class StrictNotEqualStub final : public TurboFanCodeStub { 886 class StrictNotEqualStub final : public TurboFanCodeStub {
878 public: 887 public:
879 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 888 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
880 889
881 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 890 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
882 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub); 891 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub);
883 }; 892 };
884 893
885 class StringEqualStub final : public TurboFanCodeStub { 894 class StringEqualStub final : public TurboFanCodeStub {
886 public: 895 public:
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
3105 #undef DEFINE_HYDROGEN_CODE_STUB 3114 #undef DEFINE_HYDROGEN_CODE_STUB
3106 #undef DEFINE_CODE_STUB 3115 #undef DEFINE_CODE_STUB
3107 #undef DEFINE_CODE_STUB_BASE 3116 #undef DEFINE_CODE_STUB_BASE
3108 3117
3109 extern Representation RepresentationFromType(Type* type); 3118 extern Representation RepresentationFromType(Type* type);
3110 3119
3111 } // namespace internal 3120 } // namespace internal
3112 } // namespace v8 3121 } // namespace v8
3113 3122
3114 #endif // V8_CODE_STUBS_H_ 3123 #endif // V8_CODE_STUBS_H_
OLDNEW
« src/builtins/builtins.cc ('K') | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698