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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/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_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 1538
1539 LOperand* context() { return inputs_[0]; } 1539 LOperand* context() { return inputs_[0]; }
1540 LOperand* object() { return inputs_[1]; } 1540 LOperand* object() { return inputs_[1]; }
1541 LOperand* key() { return inputs_[2]; } 1541 LOperand* key() { return inputs_[2]; }
1542 LOperand* temp_vector() { return temps_[0]; } 1542 LOperand* temp_vector() { return temps_[0]; }
1543 1543
1544 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1544 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1545 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) 1545 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1546 }; 1546 };
1547 1547
1548 1548 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> {
1549 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> {
1550 public: 1549 public:
1551 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, 1550 LLoadGlobalGeneric(LOperand* context, LOperand* vector) {
1552 LOperand* vector) {
1553 inputs_[0] = context; 1551 inputs_[0] = context;
1554 inputs_[1] = global_object;
1555 temps_[0] = vector; 1552 temps_[0] = vector;
1556 } 1553 }
1557 1554
1558 LOperand* context() { return inputs_[0]; } 1555 LOperand* context() { return inputs_[0]; }
1559 LOperand* global_object() { return inputs_[1]; }
1560 LOperand* temp_vector() { return temps_[0]; } 1556 LOperand* temp_vector() { return temps_[0]; }
1561 1557
1562 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1558 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1563 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1559 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1564 1560
1565 Handle<Object> name() const { return hydrogen()->name(); } 1561 Handle<Object> name() const { return hydrogen()->name(); }
1566 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } 1562 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1567 }; 1563 };
1568 1564
1569 1565
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 2561
2566 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2562 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2567 }; 2563 };
2568 2564
2569 #undef DECLARE_HYDROGEN_ACCESSOR 2565 #undef DECLARE_HYDROGEN_ACCESSOR
2570 #undef DECLARE_CONCRETE_INSTRUCTION 2566 #undef DECLARE_CONCRETE_INSTRUCTION
2571 } // namespace internal 2567 } // namespace internal
2572 } // namespace v8 2568 } // namespace v8
2573 2569
2574 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2570 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698