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

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

Issue 1579613002: [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: As per offline discussion, remove the weird test, which does not add a lot of value. 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/compiler/typer.cc ('k') | src/crankshaft/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 // 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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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) \
64 V(DebugBreak) \ 63 V(DebugBreak) \
65 V(DeclareGlobals) \ 64 V(DeclareGlobals) \
66 V(Deoptimize) \ 65 V(Deoptimize) \
67 V(DivByConstI) \ 66 V(DivByConstI) \
68 V(DivByPowerOf2I) \ 67 V(DivByPowerOf2I) \
69 V(DivI) \ 68 V(DivI) \
70 V(DoubleBits) \ 69 V(DoubleBits) \
71 V(DoubleToI) \ 70 V(DoubleToI) \
72 V(DoubleToSmi) \ 71 V(DoubleToSmi) \
73 V(Drop) \ 72 V(Drop) \
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 explicit LMapEnumLength(LOperand* value) { 1366 explicit LMapEnumLength(LOperand* value) {
1368 inputs_[0] = value; 1367 inputs_[0] = value;
1369 } 1368 }
1370 1369
1371 LOperand* value() { return inputs_[0]; } 1370 LOperand* value() { return inputs_[0]; }
1372 1371
1373 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1372 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1374 }; 1373 };
1375 1374
1376 1375
1377 class LDateField final : public LTemplateInstruction<1, 1, 1> {
1378 public:
1379 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) {
1380 inputs_[0] = date;
1381 temps_[0] = temp;
1382 }
1383
1384 LOperand* date() { return inputs_[0]; }
1385 LOperand* temp() { return temps_[0]; }
1386 Smi* index() const { return index_; }
1387
1388 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1389 DECLARE_HYDROGEN_ACCESSOR(DateField)
1390
1391 private:
1392 Smi* index_;
1393 };
1394
1395
1396 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { 1376 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> {
1397 public: 1377 public:
1398 LSeqStringGetChar(LOperand* string, LOperand* index) { 1378 LSeqStringGetChar(LOperand* string, LOperand* index) {
1399 inputs_[0] = string; 1379 inputs_[0] = string;
1400 inputs_[1] = index; 1380 inputs_[1] = index;
1401 } 1381 }
1402 1382
1403 LOperand* string() const { return inputs_[0]; } 1383 LOperand* string() const { return inputs_[0]; }
1404 LOperand* index() const { return inputs_[1]; } 1384 LOperand* index() const { return inputs_[1]; }
1405 1385
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2779 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2800 }; 2780 };
2801 2781
2802 #undef DECLARE_HYDROGEN_ACCESSOR 2782 #undef DECLARE_HYDROGEN_ACCESSOR
2803 #undef DECLARE_CONCRETE_INSTRUCTION 2783 #undef DECLARE_CONCRETE_INSTRUCTION
2804 2784
2805 } // namespace internal 2785 } // namespace internal
2806 } // namespace v8 2786 } // namespace v8
2807 2787
2808 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2788 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698