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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. 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/arm64/assembler-arm64.cc ('k') | src/arm64/full-codegen-arm64.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 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 16 matching lines...) Expand all
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 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
32 ASSERT(initialized_); 32 ASSERT(initialized_);
33 // There are no optional features for ARM64. 33 // There are no optional features for ARM64.
34 return false; 34 return false;
35 } 35 }
36 36
37 static bool IsSafeForSnapshot(CpuFeature f) { 37 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
38 return (IsSupported(f) && 38 return (IsSupported(f) &&
39 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); 39 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
40 } 40 }
41 41
42 // I and D cache line size in bytes. 42 // I and D cache line size in bytes.
43 static unsigned dcache_line_size(); 43 static unsigned dcache_line_size();
44 static unsigned icache_line_size(); 44 static unsigned icache_line_size();
45 45
46 static unsigned supported_; 46 static unsigned supported_;
47 47
48 static bool VerifyCrossCompiling() { 48 static bool VerifyCrossCompiling() {
49 // There are no optional features for ARM64. 49 // There are no optional features for ARM64.
(...skipping 27 matching lines...) Expand all
77 77
78 static unsigned cross_compile_; 78 static unsigned cross_compile_;
79 79
80 friend class PlatformFeatureScope; 80 friend class PlatformFeatureScope;
81 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); 81 DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
82 }; 82 };
83 83
84 } } // namespace v8::internal 84 } } // namespace v8::internal
85 85
86 #endif // V8_ARM64_CPU_ARM64_H_ 86 #endif // V8_ARM64_CPU_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698