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

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

Issue 1825793002: [stubs] Introduce code stubs for bitwise binary operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/codegen.h" 10 #include "src/codegen.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 V(AllocateBool32x4) \ 106 V(AllocateBool32x4) \
107 V(AllocateInt16x8) \ 107 V(AllocateInt16x8) \
108 V(AllocateUint16x8) \ 108 V(AllocateUint16x8) \
109 V(AllocateBool16x8) \ 109 V(AllocateBool16x8) \
110 V(AllocateInt8x16) \ 110 V(AllocateInt8x16) \
111 V(AllocateUint8x16) \ 111 V(AllocateUint8x16) \
112 V(AllocateBool8x16) \ 112 V(AllocateBool8x16) \
113 V(StringLength) \ 113 V(StringLength) \
114 V(Add) \ 114 V(Add) \
115 V(Subtract) \ 115 V(Subtract) \
116 V(BitwiseAnd) \
117 V(BitwiseOr) \
118 V(BitwiseXor) \
116 V(LessThan) \ 119 V(LessThan) \
117 V(LessThanOrEqual) \ 120 V(LessThanOrEqual) \
118 V(GreaterThan) \ 121 V(GreaterThan) \
119 V(GreaterThanOrEqual) \ 122 V(GreaterThanOrEqual) \
120 V(Equal) \ 123 V(Equal) \
121 V(NotEqual) \ 124 V(NotEqual) \
122 V(StrictEqual) \ 125 V(StrictEqual) \
123 V(StrictNotEqual) \ 126 V(StrictNotEqual) \
124 V(StringEqual) \ 127 V(StringEqual) \
125 V(StringNotEqual) \ 128 V(StringNotEqual) \
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 }; 681 };
679 682
680 class SubtractStub final : public TurboFanCodeStub { 683 class SubtractStub final : public TurboFanCodeStub {
681 public: 684 public:
682 explicit SubtractStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 685 explicit SubtractStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
683 686
684 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); 687 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
685 DEFINE_TURBOFAN_CODE_STUB(Subtract, TurboFanCodeStub); 688 DEFINE_TURBOFAN_CODE_STUB(Subtract, TurboFanCodeStub);
686 }; 689 };
687 690
691 class BitwiseAndStub final : public TurboFanCodeStub {
692 public:
693 explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
694
695 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
696 DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub);
697 };
698
699 class BitwiseOrStub final : public TurboFanCodeStub {
700 public:
701 explicit BitwiseOrStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
702
703 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
704 DEFINE_TURBOFAN_CODE_STUB(BitwiseOr, TurboFanCodeStub);
705 };
706
707 class BitwiseXorStub final : public TurboFanCodeStub {
708 public:
709 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
710
711 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp);
712 DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub);
713 };
714
688 class LessThanStub final : public TurboFanCodeStub { 715 class LessThanStub final : public TurboFanCodeStub {
689 public: 716 public:
690 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 717 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
691 718
692 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 719 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
693 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); 720 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub);
694 }; 721 };
695 722
696 class LessThanOrEqualStub final : public TurboFanCodeStub { 723 class LessThanOrEqualStub final : public TurboFanCodeStub {
697 public: 724 public:
(...skipping 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 #undef DEFINE_HYDROGEN_CODE_STUB 3094 #undef DEFINE_HYDROGEN_CODE_STUB
3068 #undef DEFINE_CODE_STUB 3095 #undef DEFINE_CODE_STUB
3069 #undef DEFINE_CODE_STUB_BASE 3096 #undef DEFINE_CODE_STUB_BASE
3070 3097
3071 extern Representation RepresentationFromType(Type* type); 3098 extern Representation RepresentationFromType(Type* type);
3072 3099
3073 } // namespace internal 3100 } // namespace internal
3074 } // namespace v8 3101 } // namespace v8
3075 3102
3076 #endif // V8_CODE_STUBS_H_ 3103 #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