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

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

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/arm/ic-arm.cc ('k') | src/arm/lithium-arm.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 V(CheckInstanceType) \ 65 V(CheckInstanceType) \
66 V(CheckNonSmi) \ 66 V(CheckNonSmi) \
67 V(CheckMaps) \ 67 V(CheckMaps) \
68 V(CheckMapValue) \ 68 V(CheckMapValue) \
69 V(CheckSmi) \ 69 V(CheckSmi) \
70 V(CheckValue) \ 70 V(CheckValue) \
71 V(ClampDToUint8) \ 71 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 72 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 73 V(ClampTToUint8) \
74 V(ClassOfTestAndBranch) \ 74 V(ClassOfTestAndBranch) \
75 V(CompareMinusZeroAndBranch) \
75 V(CompareNumericAndBranch) \ 76 V(CompareNumericAndBranch) \
76 V(CmpObjectEqAndBranch) \ 77 V(CmpObjectEqAndBranch) \
77 V(CmpHoleAndBranch) \ 78 V(CmpHoleAndBranch) \
78 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
79 V(CmpT) \ 80 V(CmpT) \
80 V(ConstantD) \ 81 V(ConstantD) \
81 V(ConstantE) \ 82 V(ConstantE) \
82 V(ConstantI) \ 83 V(ConstantI) \
83 V(ConstantS) \ 84 V(ConstantS) \
84 V(ConstantT) \ 85 V(ConstantT) \
85 V(Context) \ 86 V(Context) \
86 V(DateField) \ 87 V(DateField) \
87 V(DebugBreak) \ 88 V(DebugBreak) \
88 V(DeclareGlobals) \ 89 V(DeclareGlobals) \
89 V(Deoptimize) \ 90 V(Deoptimize) \
90 V(DivI) \ 91 V(DivI) \
91 V(DoubleToI) \ 92 V(DoubleToI) \
92 V(DoubleToSmi) \ 93 V(DoubleToSmi) \
93 V(Drop) \ 94 V(Drop) \
95 V(Dummy) \
94 V(DummyUse) \ 96 V(DummyUse) \
95 V(ElementsKind) \ 97 V(ElementsKind) \
96 V(ForInCacheArray) \ 98 V(ForInCacheArray) \
97 V(ForInPrepareMap) \ 99 V(ForInPrepareMap) \
98 V(FunctionLiteral) \ 100 V(FunctionLiteral) \
99 V(GetCachedArrayIndex) \ 101 V(GetCachedArrayIndex) \
100 V(GlobalObject) \ 102 V(GlobalObject) \
101 V(GlobalReceiver) \ 103 V(GlobalReceiver) \
102 V(Goto) \ 104 V(Goto) \
103 V(HasCachedArrayIndexAndBranch) \ 105 V(HasCachedArrayIndexAndBranch) \
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 V(NumberTagU) \ 151 V(NumberTagU) \
150 V(NumberUntagD) \ 152 V(NumberUntagD) \
151 V(OsrEntry) \ 153 V(OsrEntry) \
152 V(OuterContext) \ 154 V(OuterContext) \
153 V(Parameter) \ 155 V(Parameter) \
154 V(Power) \ 156 V(Power) \
155 V(PushArgument) \ 157 V(PushArgument) \
156 V(Random) \ 158 V(Random) \
157 V(RegExpLiteral) \ 159 V(RegExpLiteral) \
158 V(Return) \ 160 V(Return) \
161 V(SeqStringGetChar) \
159 V(SeqStringSetChar) \ 162 V(SeqStringSetChar) \
160 V(ShiftI) \ 163 V(ShiftI) \
161 V(SmiTag) \ 164 V(SmiTag) \
162 V(SmiUntag) \ 165 V(SmiUntag) \
163 V(StackCheck) \ 166 V(StackCheck) \
164 V(StoreCodeEntry) \ 167 V(StoreCodeEntry) \
165 V(StoreContextSlot) \ 168 V(StoreContextSlot) \
166 V(StoreGlobalCell) \ 169 V(StoreGlobalCell) \
167 V(StoreGlobalGeneric) \ 170 V(StoreGlobalGeneric) \
168 V(StoreKeyed) \ 171 V(StoreKeyed) \
169 V(StoreKeyedGeneric) \ 172 V(StoreKeyedGeneric) \
170 V(StoreNamedField) \ 173 V(StoreNamedField) \
171 V(StoreNamedGeneric) \ 174 V(StoreNamedGeneric) \
172 V(StringAdd) \ 175 V(StringAdd) \
173 V(StringCharCodeAt) \ 176 V(StringCharCodeAt) \
174 V(StringCharFromCode) \ 177 V(StringCharFromCode) \
175 V(StringCompareAndBranch) \ 178 V(StringCompareAndBranch) \
176 V(SubI) \ 179 V(SubI) \
177 V(RSubI) \ 180 V(RSubI) \
178 V(TaggedToI) \ 181 V(TaggedToI) \
179 V(ThisFunction) \ 182 V(ThisFunction) \
180 V(Throw) \ 183 V(Throw) \
181 V(ToFastProperties) \ 184 V(ToFastProperties) \
182 V(TransitionElementsKind) \ 185 V(TransitionElementsKind) \
183 V(TrapAllocationMemento) \ 186 V(TrapAllocationMemento) \
184 V(Typeof) \ 187 V(Typeof) \
185 V(TypeofIsAndBranch) \ 188 V(TypeofIsAndBranch) \
186 V(Uint32ToDouble) \ 189 V(Uint32ToDouble) \
190 V(Uint32ToSmi) \
187 V(UnknownOSRValue) \ 191 V(UnknownOSRValue) \
188 V(ValueOf) \ 192 V(ValueOf) \
189 V(WrapReceiver) 193 V(WrapReceiver)
190 194
191 195
192 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 196 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
193 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 197 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
194 return LInstruction::k##type; \ 198 return LInstruction::k##type; \
195 } \ 199 } \
196 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 200 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 void set_gap_instructions_size(int gap_instructions_size) { 419 void set_gap_instructions_size(int gap_instructions_size) {
416 gap_instructions_size_ = gap_instructions_size; 420 gap_instructions_size_ = gap_instructions_size;
417 } 421 }
418 int gap_instructions_size() { return gap_instructions_size_; } 422 int gap_instructions_size() { return gap_instructions_size_; }
419 423
420 private: 424 private:
421 int gap_instructions_size_; 425 int gap_instructions_size_;
422 }; 426 };
423 427
424 428
429 class LDummy V8_FINAL : public LTemplateInstruction<1, 0, 0> {
430 public:
431 explicit LDummy() { }
432 DECLARE_CONCRETE_INSTRUCTION(Dummy, "dummy")
433 };
434
435
425 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> { 436 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
426 public: 437 public:
427 explicit LDummyUse(LOperand* value) { 438 explicit LDummyUse(LOperand* value) {
428 inputs_[0] = value; 439 inputs_[0] = value;
429 } 440 }
430 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 441 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
431 }; 442 };
432 443
433 444
434 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { 445 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> {
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 inputs_[0] = object; 922 inputs_[0] = object;
912 } 923 }
913 924
914 LOperand* object() { return inputs_[0]; } 925 LOperand* object() { return inputs_[0]; }
915 926
916 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 927 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
917 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 928 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
918 }; 929 };
919 930
920 931
932 class LCompareMinusZeroAndBranch V8_FINAL : public LControlInstruction<1, 1> {
933 public:
934 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) {
935 inputs_[0] = value;
936 temps_[0] = temp;
937 }
938
939 LOperand* value() { return inputs_[0]; }
940 LOperand* temp() { return temps_[0]; }
941
942 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
943 "cmp-minus-zero-and-branch")
944 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
945 };
946
947
921 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> { 948 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> {
922 public: 949 public:
923 LIsObjectAndBranch(LOperand* value, LOperand* temp) { 950 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
924 inputs_[0] = value; 951 inputs_[0] = value;
925 temps_[0] = temp; 952 temps_[0] = temp;
926 } 953 }
927 954
928 LOperand* value() { return inputs_[0]; } 955 LOperand* value() { return inputs_[0]; }
929 LOperand* temp() { return temps_[0]; } 956 LOperand* temp() { return temps_[0]; }
930 957
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 Smi* index() const { return index_; } 1379 Smi* index() const { return index_; }
1353 1380
1354 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1381 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1355 DECLARE_HYDROGEN_ACCESSOR(DateField) 1382 DECLARE_HYDROGEN_ACCESSOR(DateField)
1356 1383
1357 private: 1384 private:
1358 Smi* index_; 1385 Smi* index_;
1359 }; 1386 };
1360 1387
1361 1388
1389 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1390 public:
1391 LSeqStringGetChar(LOperand* string, LOperand* index) {
1392 inputs_[0] = string;
1393 inputs_[1] = index;
1394 }
1395
1396 LOperand* string() const { return inputs_[0]; }
1397 LOperand* index() const { return inputs_[1]; }
1398
1399 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1400 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1401 };
1402
1403
1362 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1404 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1363 public: 1405 public:
1364 LSeqStringSetChar(String::Encoding encoding, 1406 LSeqStringSetChar(LOperand* string,
1365 LOperand* string,
1366 LOperand* index, 1407 LOperand* index,
1367 LOperand* value) : encoding_(encoding) { 1408 LOperand* value) {
1368 inputs_[0] = string; 1409 inputs_[0] = string;
1369 inputs_[1] = index; 1410 inputs_[1] = index;
1370 inputs_[2] = value; 1411 inputs_[2] = value;
1371 } 1412 }
1372 1413
1373 String::Encoding encoding() { return encoding_; }
1374 LOperand* string() { return inputs_[0]; } 1414 LOperand* string() { return inputs_[0]; }
1375 LOperand* index() { return inputs_[1]; } 1415 LOperand* index() { return inputs_[1]; }
1376 LOperand* value() { return inputs_[2]; } 1416 LOperand* value() { return inputs_[2]; }
1377 1417
1378 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1418 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1379 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1419 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1380
1381 private:
1382 String::Encoding encoding_;
1383 }; 1420 };
1384 1421
1385 1422
1386 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1423 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1387 public: 1424 public:
1388 LThrow(LOperand* context, LOperand* value) { 1425 LThrow(LOperand* context, LOperand* value) {
1389 inputs_[0] = context; 1426 inputs_[0] = context;
1390 inputs_[1] = value; 1427 inputs_[1] = value;
1391 } 1428 }
1392 1429
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 explicit LUint32ToDouble(LOperand* value) { 2104 explicit LUint32ToDouble(LOperand* value) {
2068 inputs_[0] = value; 2105 inputs_[0] = value;
2069 } 2106 }
2070 2107
2071 LOperand* value() { return inputs_[0]; } 2108 LOperand* value() { return inputs_[0]; }
2072 2109
2073 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 2110 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
2074 }; 2111 };
2075 2112
2076 2113
2114 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2115 public:
2116 explicit LUint32ToSmi(LOperand* value) {
2117 inputs_[0] = value;
2118 }
2119
2120 LOperand* value() { return inputs_[0]; }
2121
2122 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
2123 DECLARE_HYDROGEN_ACCESSOR(Change)
2124 };
2125
2126
2077 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2127 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2078 public: 2128 public:
2079 explicit LNumberTagI(LOperand* value) { 2129 explicit LNumberTagI(LOperand* value) {
2080 inputs_[0] = value; 2130 inputs_[0] = value;
2081 } 2131 }
2082 2132
2083 LOperand* value() { return inputs_[0]; } 2133 LOperand* value() { return inputs_[0]; }
2084 2134
2085 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 2135 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
2086 }; 2136 };
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 2936
2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2888 }; 2938 };
2889 2939
2890 #undef DECLARE_HYDROGEN_ACCESSOR 2940 #undef DECLARE_HYDROGEN_ACCESSOR
2891 #undef DECLARE_CONCRETE_INSTRUCTION 2941 #undef DECLARE_CONCRETE_INSTRUCTION
2892 2942
2893 } } // namespace v8::internal 2943 } } // namespace v8::internal
2894 2944
2895 #endif // V8_ARM_LITHIUM_ARM_H_ 2945 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698