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

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

Issue 1228113008: Crankshaft part of the 'loads and stores to global vars through property cell shortcuts' feature. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments + regression test Created 5 years, 5 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/arm/lithium-codegen-arm.cc ('k') | src/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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_
6 #define V8_ARM64_LITHIUM_ARM64_H_ 6 #define V8_ARM64_LITHIUM_ARM64_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 V(IsObjectAndBranch) \ 97 V(IsObjectAndBranch) \
98 V(IsSmiAndBranch) \ 98 V(IsSmiAndBranch) \
99 V(IsStringAndBranch) \ 99 V(IsStringAndBranch) \
100 V(IsUndetectableAndBranch) \ 100 V(IsUndetectableAndBranch) \
101 V(Label) \ 101 V(Label) \
102 V(LazyBailout) \ 102 V(LazyBailout) \
103 V(LoadContextSlot) \ 103 V(LoadContextSlot) \
104 V(LoadFieldByIndex) \ 104 V(LoadFieldByIndex) \
105 V(LoadFunctionPrototype) \ 105 V(LoadFunctionPrototype) \
106 V(LoadGlobalGeneric) \ 106 V(LoadGlobalGeneric) \
107 V(LoadGlobalViaContext) \
107 V(LoadKeyedExternal) \ 108 V(LoadKeyedExternal) \
108 V(LoadKeyedFixed) \ 109 V(LoadKeyedFixed) \
109 V(LoadKeyedFixedDouble) \ 110 V(LoadKeyedFixedDouble) \
110 V(LoadKeyedGeneric) \ 111 V(LoadKeyedGeneric) \
111 V(LoadNamedField) \ 112 V(LoadNamedField) \
112 V(LoadNamedGeneric) \ 113 V(LoadNamedGeneric) \
113 V(LoadRoot) \ 114 V(LoadRoot) \
114 V(MapEnumLength) \ 115 V(MapEnumLength) \
115 V(MathAbs) \ 116 V(MathAbs) \
116 V(MathAbsTagged) \ 117 V(MathAbsTagged) \
(...skipping 28 matching lines...) Expand all
145 V(SeqStringGetChar) \ 146 V(SeqStringGetChar) \
146 V(SeqStringSetChar) \ 147 V(SeqStringSetChar) \
147 V(ShiftI) \ 148 V(ShiftI) \
148 V(ShiftS) \ 149 V(ShiftS) \
149 V(SmiTag) \ 150 V(SmiTag) \
150 V(SmiUntag) \ 151 V(SmiUntag) \
151 V(StackCheck) \ 152 V(StackCheck) \
152 V(StoreCodeEntry) \ 153 V(StoreCodeEntry) \
153 V(StoreContextSlot) \ 154 V(StoreContextSlot) \
154 V(StoreFrameContext) \ 155 V(StoreFrameContext) \
156 V(StoreGlobalViaContext) \
155 V(StoreKeyedExternal) \ 157 V(StoreKeyedExternal) \
156 V(StoreKeyedFixed) \ 158 V(StoreKeyedFixed) \
157 V(StoreKeyedFixedDouble) \ 159 V(StoreKeyedFixedDouble) \
158 V(StoreKeyedGeneric) \ 160 V(StoreKeyedGeneric) \
159 V(StoreNamedField) \ 161 V(StoreNamedField) \
160 V(StoreNamedGeneric) \ 162 V(StoreNamedGeneric) \
161 V(StringAdd) \ 163 V(StringAdd) \
162 V(StringCharCodeAt) \ 164 V(StringCharCodeAt) \
163 V(StringCharFromCode) \ 165 V(StringCharFromCode) \
164 V(StringCompareAndBranch) \ 166 V(StringCompareAndBranch) \
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 LOperand* temp() { return temps_[0]; } 1668 LOperand* temp() { return temps_[0]; }
1667 1669
1668 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, 1670 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
1669 "is-undetectable-and-branch") 1671 "is-undetectable-and-branch")
1670 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) 1672 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch)
1671 1673
1672 void PrintDataTo(StringStream* stream) override; 1674 void PrintDataTo(StringStream* stream) override;
1673 }; 1675 };
1674 1676
1675 1677
1678 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> {
1679 public:
1680 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; }
1681
1682 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context")
1683 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext)
1684
1685 void PrintDataTo(StringStream* stream) override;
1686
1687 LOperand* context() { return inputs_[0]; }
1688
1689 Handle<Object> name() const { return hydrogen()->name(); }
1690 int depth() const { return hydrogen()->depth(); }
1691 int slot_index() const { return hydrogen()->slot_index(); }
1692 };
1693
1694
1676 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1695 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1677 public: 1696 public:
1678 explicit LLoadContextSlot(LOperand* context) { 1697 explicit LLoadContextSlot(LOperand* context) {
1679 inputs_[0] = context; 1698 inputs_[0] = context;
1680 } 1699 }
1681 1700
1682 LOperand* context() { return inputs_[0]; } 1701 LOperand* context() { return inputs_[0]; }
1683 1702
1684 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1703 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1685 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1704 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2467 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2449 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2468 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2450 2469
2451 Label* done_label() { return &done_label_; } 2470 Label* done_label() { return &done_label_; }
2452 2471
2453 private: 2472 private:
2454 Label done_label_; 2473 Label done_label_;
2455 }; 2474 };
2456 2475
2457 2476
2477 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> {
2478 public:
2479 LStoreGlobalViaContext(LOperand* context, LOperand* value) {
2480 inputs_[0] = context;
2481 inputs_[1] = value;
2482 }
2483
2484 LOperand* context() { return inputs_[0]; }
2485 LOperand* value() { return inputs_[1]; }
2486
2487 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext,
2488 "store-global-via-context")
2489 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext)
2490
2491 void PrintDataTo(StringStream* stream) override;
2492
2493 Handle<Object> name() const { return hydrogen()->name(); }
2494 int depth() { return hydrogen()->depth(); }
2495 int slot_index() { return hydrogen()->slot_index(); }
2496 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2497 };
2498
2499
2458 template<int T> 2500 template<int T>
2459 class LStoreKeyed : public LTemplateInstruction<0, 3, T> { 2501 class LStoreKeyed : public LTemplateInstruction<0, 3, T> {
2460 public: 2502 public:
2461 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) { 2503 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) {
2462 this->inputs_[0] = elements; 2504 this->inputs_[0] = elements;
2463 this->inputs_[1] = key; 2505 this->inputs_[1] = key;
2464 this->inputs_[2] = value; 2506 this->inputs_[2] = value;
2465 } 2507 }
2466 2508
2467 bool is_external() const { return this->hydrogen()->is_external(); } 2509 bool is_external() const { return this->hydrogen()->is_external(); }
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
3248 3290
3249 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3291 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3250 }; 3292 };
3251 3293
3252 #undef DECLARE_HYDROGEN_ACCESSOR 3294 #undef DECLARE_HYDROGEN_ACCESSOR
3253 #undef DECLARE_CONCRETE_INSTRUCTION 3295 #undef DECLARE_CONCRETE_INSTRUCTION
3254 3296
3255 } } // namespace v8::internal 3297 } } // namespace v8::internal
3256 3298
3257 #endif // V8_ARM64_LITHIUM_ARM64_H_ 3299 #endif // V8_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698