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

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

Issue 2096653003: [ic] Don't pass receiver and name to LoadGlobalIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@store-name-in-metavector
Patch Set: Removed name parameter. Created 4 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/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 1591
1592 LOperand* context() { return inputs_[0]; } 1592 LOperand* context() { return inputs_[0]; }
1593 LOperand* object() { return inputs_[1]; } 1593 LOperand* object() { return inputs_[1]; }
1594 LOperand* key() { return inputs_[2]; } 1594 LOperand* key() { return inputs_[2]; }
1595 LOperand* temp_vector() { return temps_[0]; } 1595 LOperand* temp_vector() { return temps_[0]; }
1596 1596
1597 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1597 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1598 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) 1598 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1599 }; 1599 };
1600 1600
1601 1601 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> {
1602 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> {
1603 public: 1602 public:
1604 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, 1603 LLoadGlobalGeneric(LOperand* context, LOperand* vector) {
1605 LOperand* vector) {
1606 inputs_[0] = context; 1604 inputs_[0] = context;
1607 inputs_[1] = global_object;
1608 temps_[0] = vector; 1605 temps_[0] = vector;
1609 } 1606 }
1610 1607
1611 LOperand* context() { return inputs_[0]; } 1608 LOperand* context() { return inputs_[0]; }
1612 LOperand* global_object() { return inputs_[1]; }
1613 LOperand* temp_vector() { return temps_[0]; } 1609 LOperand* temp_vector() { return temps_[0]; }
1614 1610
1615 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1611 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1616 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1612 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1617 1613
1618 Handle<Object> name() const { return hydrogen()->name(); } 1614 Handle<Object> name() const { return hydrogen()->name(); }
1619 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } 1615 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1620 }; 1616 };
1621 1617
1622 1618
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2663 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2668 }; 2664 };
2669 2665
2670 #undef DECLARE_HYDROGEN_ACCESSOR 2666 #undef DECLARE_HYDROGEN_ACCESSOR
2671 #undef DECLARE_CONCRETE_INSTRUCTION 2667 #undef DECLARE_CONCRETE_INSTRUCTION
2672 2668
2673 } // namespace internal 2669 } // namespace internal
2674 } // namespace v8 2670 } // namespace v8
2675 2671
2676 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2672 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698