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

Side by Side Diff: src/mips/lithium-mips.h

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | src/mips/lithium-mips.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 V(CheckInstanceType) \ 74 V(CheckInstanceType) \
75 V(CheckMaps) \ 75 V(CheckMaps) \
76 V(CheckNonSmi) \ 76 V(CheckNonSmi) \
77 V(CheckPrototypeMaps) \ 77 V(CheckPrototypeMaps) \
78 V(CheckSmi) \ 78 V(CheckSmi) \
79 V(ClampDToUint8) \ 79 V(ClampDToUint8) \
80 V(ClampIToUint8) \ 80 V(ClampIToUint8) \
81 V(ClampTToUint8) \ 81 V(ClampTToUint8) \
82 V(ClassOfTestAndBranch) \ 82 V(ClassOfTestAndBranch) \
83 V(CmpConstantEqAndBranch) \ 83 V(CmpConstantEqAndBranch) \
84 V(CmpIDAndBranch) \ 84 V(CompareNumericAndBranch) \
85 V(CmpObjectEqAndBranch) \ 85 V(CmpObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 86 V(CmpMapAndBranch) \
87 V(CmpT) \ 87 V(CmpT) \
88 V(ConstantD) \ 88 V(ConstantD) \
89 V(ConstantI) \ 89 V(ConstantI) \
90 V(ConstantS) \ 90 V(ConstantS) \
91 V(ConstantT) \ 91 V(ConstantT) \
92 V(Context) \ 92 V(Context) \
93 V(DebugBreak) \ 93 V(DebugBreak) \
94 V(DeclareGlobals) \ 94 V(DeclareGlobals) \
95 V(DeleteProperty) \ 95 V(DeleteProperty) \
96 V(Deoptimize) \ 96 V(Deoptimize) \
97 V(DivI) \ 97 V(DivI) \
98 V(DoubleToI) \ 98 V(DoubleToI) \
99 V(DoubleToSmi) \ 99 V(DoubleToSmi) \
100 V(DummyUse) \ 100 V(DummyUse) \
101 V(ElementsKind) \ 101 V(ElementsKind) \
102 V(FixedArrayBaseLength) \
103 V(FunctionLiteral) \ 102 V(FunctionLiteral) \
104 V(GetCachedArrayIndex) \ 103 V(GetCachedArrayIndex) \
105 V(GlobalObject) \ 104 V(GlobalObject) \
106 V(GlobalReceiver) \ 105 V(GlobalReceiver) \
107 V(Goto) \ 106 V(Goto) \
108 V(HasCachedArrayIndexAndBranch) \ 107 V(HasCachedArrayIndexAndBranch) \
109 V(HasInstanceTypeAndBranch) \ 108 V(HasInstanceTypeAndBranch) \
110 V(In) \ 109 V(In) \
111 V(InstanceOf) \ 110 V(InstanceOf) \
112 V(InstanceOfKnownGlobal) \ 111 V(InstanceOfKnownGlobal) \
113 V(InstanceSize) \ 112 V(InstanceSize) \
114 V(InstructionGap) \ 113 V(InstructionGap) \
115 V(Integer32ToDouble) \ 114 V(Integer32ToDouble) \
116 V(Integer32ToSmi) \ 115 V(Integer32ToSmi) \
117 V(Uint32ToDouble) \ 116 V(Uint32ToDouble) \
118 V(InvokeFunction) \ 117 V(InvokeFunction) \
119 V(IsConstructCallAndBranch) \ 118 V(IsConstructCallAndBranch) \
120 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
121 V(IsStringAndBranch) \ 120 V(IsStringAndBranch) \
121 V(IsNumberAndBranch) \
122 V(IsSmiAndBranch) \ 122 V(IsSmiAndBranch) \
123 V(IsUndetectableAndBranch) \ 123 V(IsUndetectableAndBranch) \
124 V(Label) \ 124 V(Label) \
125 V(LazyBailout) \ 125 V(LazyBailout) \
126 V(LoadContextSlot) \ 126 V(LoadContextSlot) \
127 V(LoadExternalArrayPointer) \ 127 V(LoadExternalArrayPointer) \
128 V(LoadFunctionPrototype) \ 128 V(LoadFunctionPrototype) \
129 V(LoadGlobalCell) \ 129 V(LoadGlobalCell) \
130 V(LoadGlobalGeneric) \ 130 V(LoadGlobalGeneric) \
131 V(LoadKeyed) \ 131 V(LoadKeyed) \
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") 705 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d")
706 }; 706 };
707 707
708 708
709 class LDebugBreak: public LTemplateInstruction<0, 0, 0> { 709 class LDebugBreak: public LTemplateInstruction<0, 0, 0> {
710 public: 710 public:
711 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") 711 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break")
712 }; 712 };
713 713
714 714
715 class LCmpIDAndBranch: public LControlInstruction<2, 0> { 715 class LCompareNumericAndBranch: public LControlInstruction<2, 0> {
716 public: 716 public:
717 LCmpIDAndBranch(LOperand* left, LOperand* right) { 717 LCompareNumericAndBranch(LOperand* left, LOperand* right) {
718 inputs_[0] = left; 718 inputs_[0] = left;
719 inputs_[1] = right; 719 inputs_[1] = right;
720 } 720 }
721 721
722 LOperand* left() { return inputs_[0]; } 722 LOperand* left() { return inputs_[0]; }
723 LOperand* right() { return inputs_[1]; } 723 LOperand* right() { return inputs_[1]; }
724 724
725 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") 725 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch,
726 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) 726 "compare-numeric-and-branch")
727 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch)
727 728
728 Token::Value op() const { return hydrogen()->token(); } 729 Token::Value op() const { return hydrogen()->token(); }
729 bool is_double() const { 730 bool is_double() const {
730 return hydrogen()->representation().IsDouble(); 731 return hydrogen()->representation().IsDouble();
731 } 732 }
732 733
733 virtual void PrintDataTo(StringStream* stream); 734 virtual void PrintDataTo(StringStream* stream);
734 }; 735 };
735 736
736 737
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 LOperand* value() { return inputs_[0]; } 914 LOperand* value() { return inputs_[0]; }
914 LOperand* temp() { return temps_[0]; } 915 LOperand* temp() { return temps_[0]; }
915 916
916 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 917 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
917 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 918 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
918 919
919 virtual void PrintDataTo(StringStream* stream); 920 virtual void PrintDataTo(StringStream* stream);
920 }; 921 };
921 922
922 923
924 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
925 public:
926 explicit LIsNumberAndBranch(LOperand* value) {
927 inputs_[0] = value;
928 }
929
930 LOperand* value() { return inputs_[0]; }
931
932 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
933 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
934 };
935
936
923 class LIsStringAndBranch: public LControlInstruction<1, 1> { 937 class LIsStringAndBranch: public LControlInstruction<1, 1> {
924 public: 938 public:
925 LIsStringAndBranch(LOperand* value, LOperand* temp) { 939 LIsStringAndBranch(LOperand* value, LOperand* temp) {
926 inputs_[0] = value; 940 inputs_[0] = value;
927 temps_[0] = temp; 941 temps_[0] = temp;
928 } 942 }
929 943
930 LOperand* value() { return inputs_[0]; } 944 LOperand* value() { return inputs_[0]; }
931 LOperand* temp() { return temps_[0]; } 945 LOperand* temp() { return temps_[0]; }
932 946
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 LOperand* value() { return inputs_[0]; } 1267 LOperand* value() { return inputs_[0]; }
1254 LOperand* temp() { return temps_[0]; } 1268 LOperand* temp() { return temps_[0]; }
1255 1269
1256 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1270 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1257 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1271 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1258 1272
1259 Handle<Map> map() const { return hydrogen()->map(); } 1273 Handle<Map> map() const { return hydrogen()->map(); }
1260 }; 1274 };
1261 1275
1262 1276
1263 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1264 public:
1265 explicit LFixedArrayBaseLength(LOperand* value) {
1266 inputs_[0] = value;
1267 }
1268
1269 LOperand* value() { return inputs_[0]; }
1270
1271 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1272 "fixed-array-base-length")
1273 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1274 };
1275
1276
1277 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { 1277 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1278 public: 1278 public:
1279 explicit LMapEnumLength(LOperand* value) { 1279 explicit LMapEnumLength(LOperand* value) {
1280 inputs_[0] = value; 1280 inputs_[0] = value;
1281 } 1281 }
1282 1282
1283 LOperand* value() { return inputs_[0]; } 1283 LOperand* value() { return inputs_[0]; }
1284 1284
1285 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1285 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1286 }; 1286 };
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 2824
2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2826 }; 2826 };
2827 2827
2828 #undef DECLARE_HYDROGEN_ACCESSOR 2828 #undef DECLARE_HYDROGEN_ACCESSOR
2829 #undef DECLARE_CONCRETE_INSTRUCTION 2829 #undef DECLARE_CONCRETE_INSTRUCTION
2830 2830
2831 } } // namespace v8::internal 2831 } } // namespace v8::internal
2832 2832
2833 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2833 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698