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

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

Issue 1308403010: Version 4.5.103.30 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.5
Patch Set: Created 5 years, 3 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/arm/assembler-arm.cc ('k') | src/base/cpu.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void CpuFeatures::ProbeImpl(bool cross_compile) { 46 void CpuFeatures::ProbeImpl(bool cross_compile) {
47 // AArch64 has no configuration options, no further probing is required. 47 // AArch64 has no configuration options, no further probing is required.
48 supported_ = 0; 48 supported_ = 0;
49 49
50 // Only use statically determined features for cross compile (snapshot). 50 // Only use statically determined features for cross compile (snapshot).
51 if (cross_compile) return; 51 if (cross_compile) return;
52 52
53 // Probe for runtime features 53 // Probe for runtime features
54 base::CPU cpu; 54 base::CPU cpu;
55 if (cpu.implementer() == base::CPU::NVIDIA && 55 if (cpu.implementer() == base::CPU::NVIDIA &&
56 cpu.variant() == base::CPU::NVIDIA_DENVER) { 56 cpu.variant() == base::CPU::NVIDIA_DENVER &&
57 cpu.part() <= base::CPU::NVIDIA_DENVER_V10) {
57 supported_ |= 1u << COHERENT_CACHE; 58 supported_ |= 1u << COHERENT_CACHE;
58 } 59 }
59 } 60 }
60 61
61 62
62 void CpuFeatures::PrintTarget() { } 63 void CpuFeatures::PrintTarget() { }
63 64
64 65
65 void CpuFeatures::PrintFeatures() { 66 void CpuFeatures::PrintFeatures() {
66 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); 67 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE));
(...skipping 3105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3173 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3173 DCHECK((target_offset >> 48) == 0); 3174 DCHECK((target_offset >> 48) == 0);
3174 add(rd, rd, scratch); 3175 add(rd, rd, scratch);
3175 } 3176 }
3176 3177
3177 3178
3178 } // namespace internal 3179 } // namespace internal
3179 } // namespace v8 3180 } // namespace v8
3180 3181
3181 #endif // V8_TARGET_ARCH_ARM64 3182 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/base/cpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698