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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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
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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 V(CmpHoleAndBranch) \ 55 V(CmpHoleAndBranch) \
56 V(CmpMapAndBranch) \ 56 V(CmpMapAndBranch) \
57 V(CmpT) \ 57 V(CmpT) \
58 V(ConstantD) \ 58 V(ConstantD) \
59 V(ConstantE) \ 59 V(ConstantE) \
60 V(ConstantI) \ 60 V(ConstantI) \
61 V(ConstantS) \ 61 V(ConstantS) \
62 V(ConstantT) \ 62 V(ConstantT) \
63 V(ConstructDouble) \ 63 V(ConstructDouble) \
64 V(Context) \ 64 V(Context) \
65 V(DateField) \
65 V(DebugBreak) \ 66 V(DebugBreak) \
66 V(DeclareGlobals) \ 67 V(DeclareGlobals) \
67 V(Deoptimize) \ 68 V(Deoptimize) \
68 V(DivByConstI) \ 69 V(DivByConstI) \
69 V(DivByPowerOf2I) \ 70 V(DivByPowerOf2I) \
70 V(DivI) \ 71 V(DivI) \
71 V(DoubleToI) \ 72 V(DoubleToI) \
72 V(DoubleBits) \ 73 V(DoubleBits) \
73 V(DoubleToSmi) \ 74 V(DoubleToSmi) \
74 V(Drop) \ 75 V(Drop) \
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 explicit LMapEnumLength(LOperand* value) { 1362 explicit LMapEnumLength(LOperand* value) {
1362 inputs_[0] = value; 1363 inputs_[0] = value;
1363 } 1364 }
1364 1365
1365 LOperand* value() { return inputs_[0]; } 1366 LOperand* value() { return inputs_[0]; }
1366 1367
1367 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1368 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1368 }; 1369 };
1369 1370
1370 1371
1372 class LDateField final : public LTemplateInstruction<1, 1, 1> {
1373 public:
1374 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) {
1375 inputs_[0] = date;
1376 temps_[0] = temp;
1377 }
1378
1379 LOperand* date() { return inputs_[0]; }
1380 LOperand* temp() { return temps_[0]; }
1381 Smi* index() const { return index_; }
1382
1383 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1384 DECLARE_HYDROGEN_ACCESSOR(DateField)
1385
1386 private:
1387 Smi* index_;
1388 };
1389
1390
1371 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { 1391 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> {
1372 public: 1392 public:
1373 LSeqStringGetChar(LOperand* string, LOperand* index) { 1393 LSeqStringGetChar(LOperand* string, LOperand* index) {
1374 inputs_[0] = string; 1394 inputs_[0] = string;
1375 inputs_[1] = index; 1395 inputs_[1] = index;
1376 } 1396 }
1377 1397
1378 LOperand* string() const { return inputs_[0]; } 1398 LOperand* string() const { return inputs_[0]; }
1379 LOperand* index() const { return inputs_[1]; } 1399 LOperand* index() const { return inputs_[1]; }
1380 1400
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2803 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2784 }; 2804 };
2785 2805
2786 #undef DECLARE_HYDROGEN_ACCESSOR 2806 #undef DECLARE_HYDROGEN_ACCESSOR
2787 #undef DECLARE_CONCRETE_INSTRUCTION 2807 #undef DECLARE_CONCRETE_INSTRUCTION
2788 2808
2789 } // namespace internal 2809 } // namespace internal
2790 } // namespace v8 2810 } // namespace v8
2791 2811
2792 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2812 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698