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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 V(CmpT) \ 57 V(CmpT) \
58 V(CompareMinusZeroAndBranch) \ 58 V(CompareMinusZeroAndBranch) \
59 V(CompareNumericAndBranch) \ 59 V(CompareNumericAndBranch) \
60 V(ConstantD) \ 60 V(ConstantD) \
61 V(ConstantE) \ 61 V(ConstantE) \
62 V(ConstantI) \ 62 V(ConstantI) \
63 V(ConstantS) \ 63 V(ConstantS) \
64 V(ConstantT) \ 64 V(ConstantT) \
65 V(ConstructDouble) \ 65 V(ConstructDouble) \
66 V(Context) \ 66 V(Context) \
67 V(DateField) \
67 V(DebugBreak) \ 68 V(DebugBreak) \
68 V(DeclareGlobals) \ 69 V(DeclareGlobals) \
69 V(Deoptimize) \ 70 V(Deoptimize) \
70 V(DivByConstI) \ 71 V(DivByConstI) \
71 V(DivByPowerOf2I) \ 72 V(DivByPowerOf2I) \
72 V(DivI) \ 73 V(DivI) \
73 V(DoubleBits) \ 74 V(DoubleBits) \
74 V(DoubleToIntOrSmi) \ 75 V(DoubleToIntOrSmi) \
75 V(Drop) \ 76 V(Drop) \
76 V(Dummy) \ 77 V(Dummy) \
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 }; 1236 };
1236 1237
1237 1238
1238 class LContext final : public LTemplateInstruction<1, 0, 0> { 1239 class LContext final : public LTemplateInstruction<1, 0, 0> {
1239 public: 1240 public:
1240 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1241 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1241 DECLARE_HYDROGEN_ACCESSOR(Context) 1242 DECLARE_HYDROGEN_ACCESSOR(Context)
1242 }; 1243 };
1243 1244
1244 1245
1246 class LDateField final : public LTemplateInstruction<1, 1, 0> {
1247 public:
1248 LDateField(LOperand* date, Smi* index) : index_(index) {
1249 inputs_[0] = date;
1250 }
1251
1252 LOperand* date() { return inputs_[0]; }
1253 Smi* index() const { return index_; }
1254
1255 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1256 DECLARE_HYDROGEN_ACCESSOR(DateField)
1257
1258 private:
1259 Smi* index_;
1260 };
1261
1262
1245 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> { 1263 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> {
1246 public: 1264 public:
1247 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") 1265 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break")
1248 }; 1266 };
1249 1267
1250 1268
1251 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> { 1269 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> {
1252 public: 1270 public:
1253 explicit LDeclareGlobals(LOperand* context) { 1271 explicit LDeclareGlobals(LOperand* context) {
1254 inputs_[0] = context; 1272 inputs_[0] = context;
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3169 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3152 }; 3170 };
3153 3171
3154 #undef DECLARE_HYDROGEN_ACCESSOR 3172 #undef DECLARE_HYDROGEN_ACCESSOR
3155 #undef DECLARE_CONCRETE_INSTRUCTION 3173 #undef DECLARE_CONCRETE_INSTRUCTION
3156 3174
3157 } // namespace internal 3175 } // namespace internal
3158 } // namespace v8 3176 } // namespace v8
3159 3177
3160 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3178 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698