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

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

Issue 2396023002: [crankshaft] Remove HLoadGlobalGeneric and use HCallWithDescriptor instead to call LoadGlobalIC. (Closed)
Patch Set: Created 4 years, 2 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(Integer32ToDouble) \ 84 V(Integer32ToDouble) \
85 V(InvokeFunction) \ 85 V(InvokeFunction) \
86 V(IsSmiAndBranch) \ 86 V(IsSmiAndBranch) \
87 V(IsStringAndBranch) \ 87 V(IsStringAndBranch) \
88 V(IsUndetectableAndBranch) \ 88 V(IsUndetectableAndBranch) \
89 V(Label) \ 89 V(Label) \
90 V(LazyBailout) \ 90 V(LazyBailout) \
91 V(LoadContextSlot) \ 91 V(LoadContextSlot) \
92 V(LoadFieldByIndex) \ 92 V(LoadFieldByIndex) \
93 V(LoadFunctionPrototype) \ 93 V(LoadFunctionPrototype) \
94 V(LoadGlobalGeneric) \
95 V(LoadKeyedExternal) \ 94 V(LoadKeyedExternal) \
96 V(LoadKeyedFixed) \ 95 V(LoadKeyedFixed) \
97 V(LoadKeyedFixedDouble) \ 96 V(LoadKeyedFixedDouble) \
98 V(LoadKeyedGeneric) \ 97 V(LoadKeyedGeneric) \
99 V(LoadNamedField) \ 98 V(LoadNamedField) \
100 V(LoadNamedGeneric) \ 99 V(LoadNamedGeneric) \
101 V(LoadRoot) \ 100 V(LoadRoot) \
102 V(MathAbs) \ 101 V(MathAbs) \
103 V(MathAbsTagged) \ 102 V(MathAbsTagged) \
104 V(MathClz32) \ 103 V(MathClz32) \
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 temps_[0] = temp; 1529 temps_[0] = temp;
1531 } 1530 }
1532 1531
1533 LOperand* function() { return inputs_[0]; } 1532 LOperand* function() { return inputs_[0]; }
1534 LOperand* temp() { return temps_[0]; } 1533 LOperand* temp() { return temps_[0]; }
1535 1534
1536 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1535 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1537 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1536 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1538 }; 1537 };
1539 1538
1540 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> {
1541 public:
1542 LLoadGlobalGeneric(LOperand* context, LOperand* vector) {
1543 inputs_[0] = context;
1544 temps_[0] = vector;
1545 }
1546
1547 LOperand* context() { return inputs_[0]; }
1548 LOperand* temp_vector() { return temps_[0]; }
1549
1550 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1551 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1552
1553 Handle<Object> name() const { return hydrogen()->name(); }
1554 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1555 };
1556
1557
1558 template <int T> 1539 template <int T>
1559 class LLoadKeyed : public LTemplateInstruction<1, 3, T> { 1540 class LLoadKeyed : public LTemplateInstruction<1, 3, T> {
1560 public: 1541 public:
1561 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) { 1542 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) {
1562 this->inputs_[0] = elements; 1543 this->inputs_[0] = elements;
1563 this->inputs_[1] = key; 1544 this->inputs_[1] = key;
1564 this->inputs_[2] = backing_store_owner; 1545 this->inputs_[2] = backing_store_owner;
1565 } 1546 }
1566 1547
1567 LOperand* elements() { return this->inputs_[0]; } 1548 LOperand* elements() { return this->inputs_[0]; }
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2936 }; 2917 };
2937 2918
2938 #undef DECLARE_HYDROGEN_ACCESSOR 2919 #undef DECLARE_HYDROGEN_ACCESSOR
2939 #undef DECLARE_CONCRETE_INSTRUCTION 2920 #undef DECLARE_CONCRETE_INSTRUCTION
2940 2921
2941 } // namespace internal 2922 } // namespace internal
2942 } // namespace v8 2923 } // namespace v8
2943 2924
2944 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 2925 #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