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

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

Issue 1901083002: [Interpreter] Introduce IncStub and DecStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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-factory.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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(Subtract) \ 113 V(Subtract) \
114 V(Multiply) \ 114 V(Multiply) \
115 V(Divide) \ 115 V(Divide) \
116 V(Modulus) \ 116 V(Modulus) \
117 V(ShiftRight) \ 117 V(ShiftRight) \
118 V(ShiftRightLogical) \ 118 V(ShiftRightLogical) \
119 V(ShiftLeft) \ 119 V(ShiftLeft) \
120 V(BitwiseAnd) \ 120 V(BitwiseAnd) \
121 V(BitwiseOr) \ 121 V(BitwiseOr) \
122 V(BitwiseXor) \ 122 V(BitwiseXor) \
123 V(Inc) \
124 V(Dec) \
123 V(FastCloneShallowObject) \ 125 V(FastCloneShallowObject) \
124 V(LessThan) \ 126 V(LessThan) \
125 V(LessThanOrEqual) \ 127 V(LessThanOrEqual) \
126 V(GreaterThan) \ 128 V(GreaterThan) \
127 V(GreaterThanOrEqual) \ 129 V(GreaterThanOrEqual) \
128 V(Equal) \ 130 V(Equal) \
129 V(NotEqual) \ 131 V(NotEqual) \
130 V(StrictEqual) \ 132 V(StrictEqual) \
131 V(StrictNotEqual) \ 133 V(StrictNotEqual) \
132 V(StringEqual) \ 134 V(StringEqual) \
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 }; 771 };
770 772
771 class BitwiseXorStub final : public TurboFanCodeStub { 773 class BitwiseXorStub final : public TurboFanCodeStub {
772 public: 774 public:
773 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 775 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
774 776
775 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); 777 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
776 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseXor, TurboFanCodeStub); 778 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(BitwiseXor, TurboFanCodeStub);
777 }; 779 };
778 780
781 class IncStub final : public TurboFanCodeStub {
782 public:
783 explicit IncStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
784
785 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
786 DEFINE_TURBOFAN_CODE_STUB(Inc, TurboFanCodeStub);
787 };
788
789 class DecStub final : public TurboFanCodeStub {
790 public:
791 explicit DecStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
792
793 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
794 DEFINE_TURBOFAN_CODE_STUB(Dec, TurboFanCodeStub);
795 };
796
779 class LessThanStub final : public TurboFanCodeStub { 797 class LessThanStub final : public TurboFanCodeStub {
780 public: 798 public:
781 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 799 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
782 800
783 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 801 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
784 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); 802 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub);
785 }; 803 };
786 804
787 class LessThanOrEqualStub final : public TurboFanCodeStub { 805 class LessThanOrEqualStub final : public TurboFanCodeStub {
788 public: 806 public:
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3188 #undef DEFINE_HYDROGEN_CODE_STUB 3206 #undef DEFINE_HYDROGEN_CODE_STUB
3189 #undef DEFINE_CODE_STUB 3207 #undef DEFINE_CODE_STUB
3190 #undef DEFINE_CODE_STUB_BASE 3208 #undef DEFINE_CODE_STUB_BASE
3191 3209
3192 extern Representation RepresentationFromType(Type* type); 3210 extern Representation RepresentationFromType(Type* type);
3193 3211
3194 } // namespace internal 3212 } // namespace internal
3195 } // namespace v8 3213 } // namespace v8
3196 3214
3197 #endif // V8_CODE_STUBS_H_ 3215 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698