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

Side by Side Diff: src/register-configuration.cc

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/simulator-ppc.cc ('k') | test/cctest/test-disasm-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 #include "src/register-configuration.h" 5 #include "src/register-configuration.h"
6 #include "src/globals.h" 6 #include "src/globals.h"
7 #include "src/macro-assembler.h" 7 #include "src/macro-assembler.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 kMaxAllocatableDoubleRegisterCount, 62 kMaxAllocatableDoubleRegisterCount,
63 kMaxAllocatableDoubleRegisterCount, 63 kMaxAllocatableDoubleRegisterCount,
64 #elif V8_TARGET_ARCH_MIPS 64 #elif V8_TARGET_ARCH_MIPS
65 kMaxAllocatableGeneralRegisterCount, 65 kMaxAllocatableGeneralRegisterCount,
66 kMaxAllocatableDoubleRegisterCount, 66 kMaxAllocatableDoubleRegisterCount,
67 kMaxAllocatableDoubleRegisterCount, 67 kMaxAllocatableDoubleRegisterCount,
68 #elif V8_TARGET_ARCH_MIPS64 68 #elif V8_TARGET_ARCH_MIPS64
69 kMaxAllocatableGeneralRegisterCount, 69 kMaxAllocatableGeneralRegisterCount,
70 kMaxAllocatableDoubleRegisterCount, 70 kMaxAllocatableDoubleRegisterCount,
71 kMaxAllocatableDoubleRegisterCount, 71 kMaxAllocatableDoubleRegisterCount,
72 #elif V8_TARGET_ARCH_PPC
73 kMaxAllocatableGeneralRegisterCount,
74 kMaxAllocatableDoubleRegisterCount,
75 kMaxAllocatableDoubleRegisterCount,
72 #else 76 #else
73 GetAllocatableGeneralRegisterCount(), 77 GetAllocatableGeneralRegisterCount(),
74 GetAllocatableDoubleRegisterCount(), 78 GetAllocatableDoubleRegisterCount(),
75 GetAllocatableAliasedDoubleRegisterCount(), 79 GetAllocatableAliasedDoubleRegisterCount(),
76 #endif 80 #endif
77 GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(), 81 GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(),
78 kGeneralRegisterNames, kDoubleRegisterNames) { 82 kGeneralRegisterNames, kDoubleRegisterNames) {
79 } 83 }
80 84
81 const char* general_register_name_table_[Register::kNumRegisters]; 85 const char* general_register_name_table_[Register::kNumRegisters];
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 141 }
138 for (int i = 0; i < num_allocatable_double_registers_; ++i) { 142 for (int i = 0; i < num_allocatable_double_registers_; ++i) {
139 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); 143 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]);
140 } 144 }
141 } 145 }
142 146
143 #undef REGISTER_COUNT 147 #undef REGISTER_COUNT
144 148
145 } // namespace internal 149 } // namespace internal
146 } // namespace v8 150 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/simulator-ppc.cc ('k') | test/cctest/test-disasm-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698