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

Side by Side Diff: src/arm64/cpu-arm64.h

Issue 265243004: Inlined IsFoundByRuntimeProbingOnly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/arm/assembler-arm.h ('k') | src/ia32/assembler-ia32.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 // 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_ARM64_CPU_ARM64_H_ 5 #ifndef V8_ARM64_CPU_ARM64_H_
6 #define V8_ARM64_CPU_ARM64_H_ 6 #define V8_ARM64_CPU_ARM64_H_
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include "serialize.h" 9 #include "serialize.h"
10 #include "cpu.h" 10 #include "cpu.h"
(...skipping 10 matching lines...) Expand all
21 // is enabled (snapshots must be portable). 21 // is enabled (snapshots must be portable).
22 static void Probe(bool serializer_enabled); 22 static void Probe(bool serializer_enabled);
23 23
24 // Check whether a feature is supported by the target CPU. 24 // Check whether a feature is supported by the target CPU.
25 static bool IsSupported(CpuFeature f) { 25 static bool IsSupported(CpuFeature f) {
26 ASSERT(initialized_); 26 ASSERT(initialized_);
27 // There are no optional features for ARM64. 27 // There are no optional features for ARM64.
28 return false; 28 return false;
29 }; 29 };
30 30
31 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { 31 // There are no optional features for ARM64.
32 ASSERT(initialized_);
33 // There are no optional features for ARM64.
34 return false;
35 }
36
37 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { 32 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
38 return (IsSupported(f) && 33 return IsSupported(f);
39 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
40 } 34 }
41 35
42 // I and D cache line size in bytes. 36 // I and D cache line size in bytes.
43 static unsigned dcache_line_size(); 37 static unsigned dcache_line_size();
44 static unsigned icache_line_size(); 38 static unsigned icache_line_size();
45 39
46 static unsigned supported_; 40 static unsigned supported_;
47 41
48 static bool VerifyCrossCompiling() { 42 static bool VerifyCrossCompiling() {
49 // There are no optional features for ARM64. 43 // There are no optional features for ARM64.
(...skipping 18 matching lines...) Expand all
68 // This isn't used (and is always 0), but it is required by V8. 62 // This isn't used (and is always 0), but it is required by V8.
69 static unsigned cross_compile_; 63 static unsigned cross_compile_;
70 64
71 friend class PlatformFeatureScope; 65 friend class PlatformFeatureScope;
72 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); 66 DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
73 }; 67 };
74 68
75 } } // namespace v8::internal 69 } } // namespace v8::internal
76 70
77 #endif // V8_ARM64_CPU_ARM64_H_ 71 #endif // V8_ARM64_CPU_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698