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

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

Issue 1258273002: PPC: [stubs] Don't pass name to Load/StoreGlobalViaContext stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ppc/lithium-codegen-ppc.cc ('k') | src/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_PPC_LITHIUM_PPC_H_
6 #define V8_PPC_LITHIUM_PPC_H_ 6 #define V8_PPC_LITHIUM_PPC_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 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 public: 1644 public:
1645 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } 1645 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; }
1646 1646
1647 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") 1647 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context")
1648 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) 1648 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext)
1649 1649
1650 void PrintDataTo(StringStream* stream) override; 1650 void PrintDataTo(StringStream* stream) override;
1651 1651
1652 LOperand* context() { return inputs_[0]; } 1652 LOperand* context() { return inputs_[0]; }
1653 1653
1654 Handle<Object> name() const { return hydrogen()->name(); }
1655 int depth() const { return hydrogen()->depth(); } 1654 int depth() const { return hydrogen()->depth(); }
1656 int slot_index() const { return hydrogen()->slot_index(); } 1655 int slot_index() const { return hydrogen()->slot_index(); }
1657 }; 1656 };
1658 1657
1659 1658
1660 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1659 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1661 public: 1660 public:
1662 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } 1661 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; }
1663 1662
1664 LOperand* context() { return inputs_[0]; } 1663 LOperand* context() { return inputs_[0]; }
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 2141
2143 LOperand* context() { return inputs_[0]; } 2142 LOperand* context() { return inputs_[0]; }
2144 LOperand* value() { return inputs_[1]; } 2143 LOperand* value() { return inputs_[1]; }
2145 2144
2146 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, 2145 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext,
2147 "store-global-via-context") 2146 "store-global-via-context")
2148 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) 2147 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext)
2149 2148
2150 void PrintDataTo(StringStream* stream) override; 2149 void PrintDataTo(StringStream* stream) override;
2151 2150
2152 Handle<Object> name() const { return hydrogen()->name(); }
2153 int depth() { return hydrogen()->depth(); } 2151 int depth() { return hydrogen()->depth(); }
2154 int slot_index() { return hydrogen()->slot_index(); } 2152 int slot_index() { return hydrogen()->slot_index(); }
2155 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2153 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2156 }; 2154 };
2157 2155
2158 2156
2159 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2157 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2160 public: 2158 public:
2161 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2159 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2162 inputs_[0] = object; 2160 inputs_[0] = object;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 2796
2799 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2797 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2800 }; 2798 };
2801 2799
2802 #undef DECLARE_HYDROGEN_ACCESSOR 2800 #undef DECLARE_HYDROGEN_ACCESSOR
2803 #undef DECLARE_CONCRETE_INSTRUCTION 2801 #undef DECLARE_CONCRETE_INSTRUCTION
2804 } 2802 }
2805 } // namespace v8::internal 2803 } // namespace v8::internal
2806 2804
2807 #endif // V8_PPC_LITHIUM_PPC_H_ 2805 #endif // V8_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | src/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698