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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/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_CRANKSHAFT_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 1584
1585 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1585 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1586 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) 1586 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1587 1587
1588 LOperand* context() { return inputs_[0]; } 1588 LOperand* context() { return inputs_[0]; }
1589 LOperand* object() { return inputs_[1]; } 1589 LOperand* object() { return inputs_[1]; }
1590 LOperand* key() { return inputs_[2]; } 1590 LOperand* key() { return inputs_[2]; }
1591 LOperand* temp_vector() { return temps_[0]; } 1591 LOperand* temp_vector() { return temps_[0]; }
1592 }; 1592 };
1593 1593
1594 1594 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> {
1595 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> {
1596 public: 1595 public:
1597 explicit LLoadGlobalGeneric(LOperand* context, LOperand* global_object, 1596 explicit LLoadGlobalGeneric(LOperand* context, LOperand* vector) {
1598 LOperand* vector) {
1599 inputs_[0] = context; 1597 inputs_[0] = context;
1600 inputs_[1] = global_object;
1601 temps_[0] = vector; 1598 temps_[0] = vector;
1602 } 1599 }
1603 1600
1604 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1601 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1605 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1602 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1606 1603
1607 LOperand* context() { return inputs_[0]; } 1604 LOperand* context() { return inputs_[0]; }
1608 LOperand* global_object() { return inputs_[1]; }
1609 LOperand* temp_vector() { return temps_[0]; } 1605 LOperand* temp_vector() { return temps_[0]; }
1610 1606
1611 Handle<Object> name() const { return hydrogen()->name(); } 1607 Handle<Object> name() const { return hydrogen()->name(); }
1612 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } 1608 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1613 }; 1609 };
1614 1610
1615 1611
1616 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1612 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1617 public: 1613 public:
1618 explicit LLoadContextSlot(LOperand* context) { 1614 explicit LLoadContextSlot(LOperand* context) {
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2648 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2653 }; 2649 };
2654 2650
2655 #undef DECLARE_HYDROGEN_ACCESSOR 2651 #undef DECLARE_HYDROGEN_ACCESSOR
2656 #undef DECLARE_CONCRETE_INSTRUCTION 2652 #undef DECLARE_CONCRETE_INSTRUCTION
2657 2653
2658 } // namespace internal 2654 } // namespace internal
2659 } // namespace v8 2655 } // namespace v8
2660 2656
2661 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2657 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698