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/mips/lithium-mips.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/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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 V(CheckInstanceType) \ 65 V(CheckInstanceType) \
66 V(CheckMaps) \ 66 V(CheckMaps) \
67 V(CheckMapValue) \ 67 V(CheckMapValue) \
68 V(CheckNonSmi) \ 68 V(CheckNonSmi) \
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 V(NumberTagU) \ 150 V(NumberTagU) \
149 V(NumberUntagD) \ 151 V(NumberUntagD) \
150 V(OsrEntry) \ 152 V(OsrEntry) \
151 V(OuterContext) \ 153 V(OuterContext) \
152 V(Parameter) \ 154 V(Parameter) \
153 V(Power) \ 155 V(Power) \
154 V(PushArgument) \ 156 V(PushArgument) \
155 V(Random) \ 157 V(Random) \
156 V(RegExpLiteral) \ 158 V(RegExpLiteral) \
157 V(Return) \ 159 V(Return) \
160 V(SeqStringGetChar) \
158 V(SeqStringSetChar) \ 161 V(SeqStringSetChar) \
159 V(ShiftI) \ 162 V(ShiftI) \
160 V(SmiTag) \ 163 V(SmiTag) \
161 V(SmiUntag) \ 164 V(SmiUntag) \
162 V(StackCheck) \ 165 V(StackCheck) \
163 V(StoreCodeEntry) \ 166 V(StoreCodeEntry) \
164 V(StoreContextSlot) \ 167 V(StoreContextSlot) \
165 V(StoreGlobalCell) \ 168 V(StoreGlobalCell) \
166 V(StoreGlobalGeneric) \ 169 V(StoreGlobalGeneric) \
167 V(StoreKeyed) \ 170 V(StoreKeyed) \
168 V(StoreKeyedGeneric) \ 171 V(StoreKeyedGeneric) \
169 V(StoreNamedField) \ 172 V(StoreNamedField) \
170 V(StoreNamedGeneric) \ 173 V(StoreNamedGeneric) \
171 V(StringAdd) \ 174 V(StringAdd) \
172 V(StringCharCodeAt) \ 175 V(StringCharCodeAt) \
173 V(StringCharFromCode) \ 176 V(StringCharFromCode) \
174 V(StringCompareAndBranch) \ 177 V(StringCompareAndBranch) \
175 V(SubI) \ 178 V(SubI) \
176 V(TaggedToI) \ 179 V(TaggedToI) \
177 V(ThisFunction) \ 180 V(ThisFunction) \
178 V(Throw) \ 181 V(Throw) \
179 V(ToFastProperties) \ 182 V(ToFastProperties) \
180 V(TransitionElementsKind) \ 183 V(TransitionElementsKind) \
181 V(TrapAllocationMemento) \ 184 V(TrapAllocationMemento) \
182 V(Typeof) \ 185 V(Typeof) \
183 V(TypeofIsAndBranch) \ 186 V(TypeofIsAndBranch) \
184 V(Uint32ToDouble) \ 187 V(Uint32ToDouble) \
188 V(Uint32ToSmi) \
185 V(UnknownOSRValue) \ 189 V(UnknownOSRValue) \
186 V(ValueOf) \ 190 V(ValueOf) \
187 V(WrapReceiver) 191 V(WrapReceiver)
188 192
189 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 193 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
190 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 194 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
191 return LInstruction::k##type; \ 195 return LInstruction::k##type; \
192 } \ 196 } \
193 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 197 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
194 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 198 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 void set_gap_instructions_size(int gap_instructions_size) { 416 void set_gap_instructions_size(int gap_instructions_size) {
413 gap_instructions_size_ = gap_instructions_size; 417 gap_instructions_size_ = gap_instructions_size;
414 } 418 }
415 int gap_instructions_size() { return gap_instructions_size_; } 419 int gap_instructions_size() { return gap_instructions_size_; }
416 420
417 private: 421 private:
418 int gap_instructions_size_; 422 int gap_instructions_size_;
419 }; 423 };
420 424
421 425
426 class LDummy V8_FINAL : public LTemplateInstruction<1, 0, 0> {
427 public:
428 explicit LDummy() { }
429 DECLARE_CONCRETE_INSTRUCTION(Dummy, "dummy")
430 };
431
432
422 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> { 433 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
423 public: 434 public:
424 explicit LDummyUse(LOperand* value) { 435 explicit LDummyUse(LOperand* value) {
425 inputs_[0] = value; 436 inputs_[0] = value;
426 } 437 }
427 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 438 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
428 }; 439 };
429 440
430 441
431 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { 442 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> {
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 inputs_[0] = object; 917 inputs_[0] = object;
907 } 918 }
908 919
909 LOperand* object() { return inputs_[0]; } 920 LOperand* object() { return inputs_[0]; }
910 921
911 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 922 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
912 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 923 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
913 }; 924 };
914 925
915 926
927 class LCompareMinusZeroAndBranch V8_FINAL : public LControlInstruction<1, 1> {
928 public:
929 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) {
930 inputs_[0] = value;
931 temps_[0] = temp;
932 }
933
934 LOperand* value() { return inputs_[0]; }
935 LOperand* temp() { return temps_[0]; }
936
937 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
938 "cmp-minus-zero-and-branch")
939 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
940 };
941
942
916 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> { 943 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> {
917 public: 944 public:
918 LIsObjectAndBranch(LOperand* value, LOperand* temp) { 945 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
919 inputs_[0] = value; 946 inputs_[0] = value;
920 temps_[0] = temp; 947 temps_[0] = temp;
921 } 948 }
922 949
923 LOperand* value() { return inputs_[0]; } 950 LOperand* value() { return inputs_[0]; }
924 LOperand* temp() { return temps_[0]; } 951 LOperand* temp() { return temps_[0]; }
925 952
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 Smi* index() const { return index_; } 1359 Smi* index() const { return index_; }
1333 1360
1334 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1361 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1335 DECLARE_HYDROGEN_ACCESSOR(DateField) 1362 DECLARE_HYDROGEN_ACCESSOR(DateField)
1336 1363
1337 private: 1364 private:
1338 Smi* index_; 1365 Smi* index_;
1339 }; 1366 };
1340 1367
1341 1368
1369 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1370 public:
1371 LSeqStringGetChar(LOperand* string, LOperand* index) {
1372 inputs_[0] = string;
1373 inputs_[1] = index;
1374 }
1375
1376 LOperand* string() const { return inputs_[0]; }
1377 LOperand* index() const { return inputs_[1]; }
1378
1379 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1380 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1381 };
1382
1383
1342 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1384 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1343 public: 1385 public:
1344 LSeqStringSetChar(String::Encoding encoding, 1386 LSeqStringSetChar(LOperand* string,
1345 LOperand* string,
1346 LOperand* index, 1387 LOperand* index,
1347 LOperand* value) : encoding_(encoding) { 1388 LOperand* value) {
1348 inputs_[0] = string; 1389 inputs_[0] = string;
1349 inputs_[1] = index; 1390 inputs_[1] = index;
1350 inputs_[2] = value; 1391 inputs_[2] = value;
1351 } 1392 }
1352 1393
1353 String::Encoding encoding() { return encoding_; }
1354 LOperand* string() { return inputs_[0]; } 1394 LOperand* string() { return inputs_[0]; }
1355 LOperand* index() { return inputs_[1]; } 1395 LOperand* index() { return inputs_[1]; }
1356 LOperand* value() { return inputs_[2]; } 1396 LOperand* value() { return inputs_[2]; }
1357 1397
1358 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1398 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1359 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1399 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1360
1361 private:
1362 String::Encoding encoding_;
1363 }; 1400 };
1364 1401
1365 1402
1366 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1403 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1367 public: 1404 public:
1368 LThrow(LOperand* context, LOperand* value) { 1405 LThrow(LOperand* context, LOperand* value) {
1369 inputs_[0] = context; 1406 inputs_[0] = context;
1370 inputs_[1] = value; 1407 inputs_[1] = value;
1371 } 1408 }
1372 1409
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 explicit LUint32ToDouble(LOperand* value) { 2082 explicit LUint32ToDouble(LOperand* value) {
2046 inputs_[0] = value; 2083 inputs_[0] = value;
2047 } 2084 }
2048 2085
2049 LOperand* value() { return inputs_[0]; } 2086 LOperand* value() { return inputs_[0]; }
2050 2087
2051 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 2088 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
2052 }; 2089 };
2053 2090
2054 2091
2092 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2093 public:
2094 explicit LUint32ToSmi(LOperand* value) {
2095 inputs_[0] = value;
2096 }
2097
2098 LOperand* value() { return inputs_[0]; }
2099
2100 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
2101 DECLARE_HYDROGEN_ACCESSOR(Change)
2102 };
2103
2104
2055 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2105 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2056 public: 2106 public:
2057 explicit LNumberTagI(LOperand* value) { 2107 explicit LNumberTagI(LOperand* value) {
2058 inputs_[0] = value; 2108 inputs_[0] = value;
2059 } 2109 }
2060 2110
2061 LOperand* value() { return inputs_[0]; } 2111 LOperand* value() { return inputs_[0]; }
2062 2112
2063 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 2113 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
2064 }; 2114 };
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 2909
2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2910 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2861 }; 2911 };
2862 2912
2863 #undef DECLARE_HYDROGEN_ACCESSOR 2913 #undef DECLARE_HYDROGEN_ACCESSOR
2864 #undef DECLARE_CONCRETE_INSTRUCTION 2914 #undef DECLARE_CONCRETE_INSTRUCTION
2865 2915
2866 } } // namespace v8::internal 2916 } } // namespace v8::internal
2867 2917
2868 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2918 #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