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

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

Issue 1381383002: PPC: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/frames-ppc.h ('k') | src/ppc/lithium-codegen-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_CODEGEN_PPC_H_ 5 #ifndef V8_PPC_LITHIUM_CODEGEN_PPC_H_
6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_ 6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_
7 7
8 #include "src/ppc/lithium-ppc.h" 8 #include "src/ppc/lithium-ppc.h"
9 9
10 #include "src/ppc/lithium-gap-resolver-ppc.h" 10 #include "src/ppc/lithium-gap-resolver-ppc.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Declare methods that deal with the individual node types. 130 // Declare methods that deal with the individual node types.
131 #define DECLARE_DO(type) void Do##type(L##type* node); 131 #define DECLARE_DO(type) void Do##type(L##type* node);
132 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 132 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
133 #undef DECLARE_DO 133 #undef DECLARE_DO
134 134
135 private: 135 private:
136 LanguageMode language_mode() const { return info()->language_mode(); } 136 LanguageMode language_mode() const { return info()->language_mode(); }
137 137
138 Scope* scope() const { return scope_; } 138 Scope* scope() const { return scope_; }
139 139
140 Register scratch0() { return r11; } 140 Register scratch0() { return kLithiumScratch; }
141 DoubleRegister double_scratch0() { return kScratchDoubleReg; } 141 DoubleRegister double_scratch0() { return kScratchDoubleReg; }
142 142
143 LInstruction* GetNextInstruction(); 143 LInstruction* GetNextInstruction();
144 144
145 void EmitClassOfTest(Label* if_true, Label* if_false, 145 void EmitClassOfTest(Label* if_true, Label* if_false,
146 Handle<String> class_name, Register input, 146 Handle<String> class_name, Register input,
147 Register temporary, Register temporary2); 147 Register temporary, Register temporary2);
148 148
149 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 149 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
150 150
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 LCodeGen* codegen_; 355 LCodeGen* codegen_;
356 Label entry_; 356 Label entry_;
357 Label exit_; 357 Label exit_;
358 Label* external_exit_; 358 Label* external_exit_;
359 int instruction_index_; 359 int instruction_index_;
360 }; 360 };
361 } // namespace internal 361 } // namespace internal
362 } // namespace v8 362 } // namespace v8
363 363
364 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_ 364 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/frames-ppc.h ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698