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

Side by Side Diff: src/mips/assembler-mips.cc

Issue 11801002: MIPS: Re-land Crankshaft-generated KeyedLoad stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // compilation. 66 // compilation.
67 #if(defined(__mips_hard_float) && __mips_hard_float != 0) 67 #if(defined(__mips_hard_float) && __mips_hard_float != 0)
68 answer |= 1u << FPU; 68 answer |= 1u << FPU;
69 #endif // defined(__mips_hard_float) && __mips_hard_float != 0 69 #endif // defined(__mips_hard_float) && __mips_hard_float != 0
70 #endif // def __mips__ 70 #endif // def __mips__
71 71
72 return answer; 72 return answer;
73 } 73 }
74 74
75 75
76 const char* DoubleRegister::AllocationIndexToString(int index) {
77 if (CpuFeatures::IsSupported(FPU)) {
78 ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters);
79 const char* const names[] = {
80 "f0",
81 "f2",
82 "f4",
83 "f6",
84 "f8",
85 "f10",
86 "f12",
87 "f14",
88 "f16",
89 "f18",
90 "f20",
91 "f22",
92 "f24",
93 "f26"
94 };
95 return names[index];
96 } else {
97 ASSERT(index == 0);
98 return "sfpd0";
99 }
100 }
101
102
76 void CpuFeatures::Probe() { 103 void CpuFeatures::Probe() {
77 unsigned standard_features = (OS::CpuFeaturesImpliedByPlatform() | 104 unsigned standard_features = (OS::CpuFeaturesImpliedByPlatform() |
78 CpuFeaturesImpliedByCompiler()); 105 CpuFeaturesImpliedByCompiler());
79 ASSERT(supported_ == 0 || supported_ == standard_features); 106 ASSERT(supported_ == 0 || supported_ == standard_features);
80 #ifdef DEBUG 107 #ifdef DEBUG
81 initialized_ = true; 108 initialized_ = true;
82 #endif 109 #endif
83 110
84 // Get the features implied by the OS and the compiler settings. This is the 111 // Get the features implied by the OS and the compiler settings. This is the
85 // minimal set of features which is also allowed for generated code in the 112 // minimal set of features which is also allowed for generated code in the
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2240 } 2267 }
2241 2268
2242 if (patched) { 2269 if (patched) {
2243 CPU::FlushICache(pc+2, sizeof(Address)); 2270 CPU::FlushICache(pc+2, sizeof(Address));
2244 } 2271 }
2245 } 2272 }
2246 2273
2247 } } // namespace v8::internal 2274 } } // namespace v8::internal
2248 2275
2249 #endif // V8_TARGET_ARCH_MIPS 2276 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698