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

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

Issue 1259963002: [stubs] Don't pass name to Load/StoreGlobalViaContext stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix rebase 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64_LITHIUM_X64_H_ 5 #ifndef V8_X64_LITHIUM_X64_H_
6 #define V8_X64_LITHIUM_X64_H_ 6 #define V8_X64_LITHIUM_X64_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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 public: 1700 public:
1701 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } 1701 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; }
1702 1702
1703 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") 1703 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context")
1704 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) 1704 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext)
1705 1705
1706 void PrintDataTo(StringStream* stream) override; 1706 void PrintDataTo(StringStream* stream) override;
1707 1707
1708 LOperand* context() { return inputs_[0]; } 1708 LOperand* context() { return inputs_[0]; }
1709 1709
1710 Handle<Object> name() const { return hydrogen()->name(); }
1711 int depth() const { return hydrogen()->depth(); } 1710 int depth() const { return hydrogen()->depth(); }
1712 int slot_index() const { return hydrogen()->slot_index(); } 1711 int slot_index() const { return hydrogen()->slot_index(); }
1713 }; 1712 };
1714 1713
1715 1714
1716 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1715 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1717 public: 1716 public:
1718 explicit LLoadContextSlot(LOperand* context) { 1717 explicit LLoadContextSlot(LOperand* context) {
1719 inputs_[0] = context; 1718 inputs_[0] = context;
1720 } 1719 }
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 2212
2214 LOperand* context() { return inputs_[0]; } 2213 LOperand* context() { return inputs_[0]; }
2215 LOperand* value() { return inputs_[1]; } 2214 LOperand* value() { return inputs_[1]; }
2216 2215
2217 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, 2216 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext,
2218 "store-global-via-context") 2217 "store-global-via-context")
2219 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) 2218 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext)
2220 2219
2221 void PrintDataTo(StringStream* stream) override; 2220 void PrintDataTo(StringStream* stream) override;
2222 2221
2223 Handle<Object> name() const { return hydrogen()->name(); }
2224 int depth() { return hydrogen()->depth(); } 2222 int depth() { return hydrogen()->depth(); }
2225 int slot_index() { return hydrogen()->slot_index(); } 2223 int slot_index() { return hydrogen()->slot_index(); }
2226 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2224 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2227 }; 2225 };
2228 2226
2229 2227
2230 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2228 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2231 public: 2229 public:
2232 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2230 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2233 inputs_[0] = object; 2231 inputs_[0] = object;
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2915 2913
2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2917 }; 2915 };
2918 2916
2919 #undef DECLARE_HYDROGEN_ACCESSOR 2917 #undef DECLARE_HYDROGEN_ACCESSOR
2920 #undef DECLARE_CONCRETE_INSTRUCTION 2918 #undef DECLARE_CONCRETE_INSTRUCTION
2921 2919
2922 } } // namespace v8::int 2920 } } // namespace v8::int
2923 2921
2924 #endif // V8_X64_LITHIUM_X64_H_ 2922 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698