OLD | NEW |
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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Display features. | 64 // Display features. |
65 static void PrintFeatures(); | 65 static void PrintFeatures(); |
66 | 66 |
67 // Check whether a feature is supported by the target CPU. | 67 // Check whether a feature is supported by the target CPU. |
68 static bool IsSupported(CpuFeature f) { | 68 static bool IsSupported(CpuFeature f) { |
69 ASSERT(initialized_); | 69 ASSERT(initialized_); |
70 return Check(f, supported_); | 70 return Check(f, supported_); |
71 } | 71 } |
72 | 72 |
73 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | |
74 ASSERT(initialized_); | |
75 return Check(f, found_by_runtime_probing_only_); | |
76 } | |
77 | |
78 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { | 73 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
79 return Check(f, cross_compile_) || | 74 return Check(f, cross_compile_) || |
80 (IsSupported(f) && | 75 (IsSupported(f) && |
81 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); | 76 !(Serializer::enabled(isolate) && |
| 77 Check(f, found_by_runtime_probing_only_))); |
82 } | 78 } |
83 | 79 |
84 static unsigned cache_line_size() { return cache_line_size_; } | 80 static unsigned cache_line_size() { return cache_line_size_; } |
85 | 81 |
86 static bool VerifyCrossCompiling() { | 82 static bool VerifyCrossCompiling() { |
87 return cross_compile_ == 0; | 83 return cross_compile_ == 0; |
88 } | 84 } |
89 | 85 |
90 static bool VerifyCrossCompiling(CpuFeature f) { | 86 static bool VerifyCrossCompiling(CpuFeature f) { |
91 unsigned mask = flag2set(f); | 87 unsigned mask = flag2set(f); |
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1696 public: | 1692 public: |
1697 explicit EnsureSpace(Assembler* assembler) { | 1693 explicit EnsureSpace(Assembler* assembler) { |
1698 assembler->CheckBuffer(); | 1694 assembler->CheckBuffer(); |
1699 } | 1695 } |
1700 }; | 1696 }; |
1701 | 1697 |
1702 | 1698 |
1703 } } // namespace v8::internal | 1699 } } // namespace v8::internal |
1704 | 1700 |
1705 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1701 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |