| OLD | NEW |
| 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 public: | 1679 public: |
| 1680 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | 1680 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1681 | 1681 |
| 1682 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | 1682 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1683 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | 1683 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1684 | 1684 |
| 1685 void PrintDataTo(StringStream* stream) override; | 1685 void PrintDataTo(StringStream* stream) override; |
| 1686 | 1686 |
| 1687 LOperand* context() { return inputs_[0]; } | 1687 LOperand* context() { return inputs_[0]; } |
| 1688 | 1688 |
| 1689 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1690 int depth() const { return hydrogen()->depth(); } | 1689 int depth() const { return hydrogen()->depth(); } |
| 1691 int slot_index() const { return hydrogen()->slot_index(); } | 1690 int slot_index() const { return hydrogen()->slot_index(); } |
| 1692 }; | 1691 }; |
| 1693 | 1692 |
| 1694 | 1693 |
| 1695 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1694 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1696 public: | 1695 public: |
| 1697 explicit LLoadContextSlot(LOperand* context) { | 1696 explicit LLoadContextSlot(LOperand* context) { |
| 1698 inputs_[0] = context; | 1697 inputs_[0] = context; |
| 1699 } | 1698 } |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2483 | 2482 |
| 2484 LOperand* context() { return inputs_[0]; } | 2483 LOperand* context() { return inputs_[0]; } |
| 2485 LOperand* value() { return inputs_[1]; } | 2484 LOperand* value() { return inputs_[1]; } |
| 2486 | 2485 |
| 2487 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | 2486 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2488 "store-global-via-context") | 2487 "store-global-via-context") |
| 2489 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | 2488 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2490 | 2489 |
| 2491 void PrintDataTo(StringStream* stream) override; | 2490 void PrintDataTo(StringStream* stream) override; |
| 2492 | 2491 |
| 2493 Handle<Object> name() const { return hydrogen()->name(); } | |
| 2494 int depth() { return hydrogen()->depth(); } | 2492 int depth() { return hydrogen()->depth(); } |
| 2495 int slot_index() { return hydrogen()->slot_index(); } | 2493 int slot_index() { return hydrogen()->slot_index(); } |
| 2496 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2494 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2497 }; | 2495 }; |
| 2498 | 2496 |
| 2499 | 2497 |
| 2500 template<int T> | 2498 template<int T> |
| 2501 class LStoreKeyed : public LTemplateInstruction<0, 3, T> { | 2499 class LStoreKeyed : public LTemplateInstruction<0, 3, T> { |
| 2502 public: | 2500 public: |
| 2503 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) { | 2501 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) { |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3290 | 3288 |
| 3291 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3289 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 3292 }; | 3290 }; |
| 3293 | 3291 |
| 3294 #undef DECLARE_HYDROGEN_ACCESSOR | 3292 #undef DECLARE_HYDROGEN_ACCESSOR |
| 3295 #undef DECLARE_CONCRETE_INSTRUCTION | 3293 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3296 | 3294 |
| 3297 } } // namespace v8::internal | 3295 } } // namespace v8::internal |
| 3298 | 3296 |
| 3299 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3297 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |