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

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

Issue 1574223002: Revert of [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/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 // 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_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 V(CmpHoleAndBranch) \ 53 V(CmpHoleAndBranch) \
54 V(CmpMapAndBranch) \ 54 V(CmpMapAndBranch) \
55 V(CmpT) \ 55 V(CmpT) \
56 V(ConstantD) \ 56 V(ConstantD) \
57 V(ConstantE) \ 57 V(ConstantE) \
58 V(ConstantI) \ 58 V(ConstantI) \
59 V(ConstantS) \ 59 V(ConstantS) \
60 V(ConstantT) \ 60 V(ConstantT) \
61 V(ConstructDouble) \ 61 V(ConstructDouble) \
62 V(Context) \ 62 V(Context) \
63 V(DateField) \
63 V(DebugBreak) \ 64 V(DebugBreak) \
64 V(DeclareGlobals) \ 65 V(DeclareGlobals) \
65 V(Deoptimize) \ 66 V(Deoptimize) \
66 V(DivByConstI) \ 67 V(DivByConstI) \
67 V(DivByPowerOf2I) \ 68 V(DivByPowerOf2I) \
68 V(DivI) \ 69 V(DivI) \
69 V(DoubleToI) \ 70 V(DoubleToI) \
70 V(DoubleBits) \ 71 V(DoubleBits) \
71 V(DoubleToSmi) \ 72 V(DoubleToSmi) \
72 V(Drop) \ 73 V(Drop) \
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 explicit LMapEnumLength(LOperand* value) { 1330 explicit LMapEnumLength(LOperand* value) {
1330 inputs_[0] = value; 1331 inputs_[0] = value;
1331 } 1332 }
1332 1333
1333 LOperand* value() { return inputs_[0]; } 1334 LOperand* value() { return inputs_[0]; }
1334 1335
1335 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1336 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1336 }; 1337 };
1337 1338
1338 1339
1340 class LDateField final : public LTemplateInstruction<1, 1, 1> {
1341 public:
1342 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) {
1343 inputs_[0] = date;
1344 temps_[0] = temp;
1345 }
1346
1347 LOperand* date() { return inputs_[0]; }
1348 LOperand* temp() { return temps_[0]; }
1349 Smi* index() const { return index_; }
1350
1351 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1352 DECLARE_HYDROGEN_ACCESSOR(DateField)
1353
1354 private:
1355 Smi* index_;
1356 };
1357
1358
1339 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { 1359 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> {
1340 public: 1360 public:
1341 LSeqStringGetChar(LOperand* string, LOperand* index) { 1361 LSeqStringGetChar(LOperand* string, LOperand* index) {
1342 inputs_[0] = string; 1362 inputs_[0] = string;
1343 inputs_[1] = index; 1363 inputs_[1] = index;
1344 } 1364 }
1345 1365
1346 LOperand* string() const { return inputs_[0]; } 1366 LOperand* string() const { return inputs_[0]; }
1347 LOperand* index() const { return inputs_[1]; } 1367 LOperand* index() const { return inputs_[1]; }
1348 1368
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2757 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2738 }; 2758 };
2739 2759
2740 #undef DECLARE_HYDROGEN_ACCESSOR 2760 #undef DECLARE_HYDROGEN_ACCESSOR
2741 #undef DECLARE_CONCRETE_INSTRUCTION 2761 #undef DECLARE_CONCRETE_INSTRUCTION
2742 2762
2743 } // namespace internal 2763 } // namespace internal
2744 } // namespace v8 2764 } // namespace v8
2745 2765
2746 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2766 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698