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

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: Omit ToNumber where possible 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
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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 }; 759 };
758 760
759 class BitwiseXorStub final : public TurboFanCodeStub { 761 class BitwiseXorStub final : public TurboFanCodeStub {
760 public: 762 public:
761 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 763 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
762 764
763 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); 765 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
764 DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub); 766 DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub);
765 }; 767 };
766 768
769 class IncStub final : public TurboFanCodeStub {
770 public:
771 explicit IncStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
772
773 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
774 DEFINE_TURBOFAN_CODE_STUB(Inc, TurboFanCodeStub);
775 };
776
777 class DecStub final : public TurboFanCodeStub {
778 public:
779 explicit DecStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
780
781 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp);
782 DEFINE_TURBOFAN_CODE_STUB(Dec, TurboFanCodeStub);
783 };
784
767 class LessThanStub final : public TurboFanCodeStub { 785 class LessThanStub final : public TurboFanCodeStub {
768 public: 786 public:
769 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 787 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
770 788
771 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 789 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
772 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); 790 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub);
773 }; 791 };
774 792
775 class LessThanOrEqualStub final : public TurboFanCodeStub { 793 class LessThanOrEqualStub final : public TurboFanCodeStub {
776 public: 794 public:
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3176 #undef DEFINE_HYDROGEN_CODE_STUB 3194 #undef DEFINE_HYDROGEN_CODE_STUB
3177 #undef DEFINE_CODE_STUB 3195 #undef DEFINE_CODE_STUB
3178 #undef DEFINE_CODE_STUB_BASE 3196 #undef DEFINE_CODE_STUB_BASE
3179 3197
3180 extern Representation RepresentationFromType(Type* type); 3198 extern Representation RepresentationFromType(Type* type);
3181 3199
3182 } // namespace internal 3200 } // namespace internal
3183 } // namespace v8 3201 } // namespace v8
3184 3202
3185 #endif // V8_CODE_STUBS_H_ 3203 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698