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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "serialize.h" | 43 #include "serialize.h" |
44 | 44 |
45 namespace v8 { | 45 namespace v8 { |
46 namespace internal { | 46 namespace internal { |
47 | 47 |
48 #ifdef DEBUG | 48 #ifdef DEBUG |
49 bool CpuFeatures::initialized_ = false; | 49 bool CpuFeatures::initialized_ = false; |
50 #endif | 50 #endif |
51 unsigned CpuFeatures::supported_ = 0; | 51 unsigned CpuFeatures::supported_ = 0; |
52 unsigned CpuFeatures::found_by_runtime_probing_only_ = 0; | 52 unsigned CpuFeatures::found_by_runtime_probing_only_ = 0; |
| 53 unsigned CpuFeatures::cross_compile_ = 0; |
53 unsigned CpuFeatures::cache_line_size_ = 64; | 54 unsigned CpuFeatures::cache_line_size_ = 64; |
54 | 55 |
55 | 56 |
56 ExternalReference ExternalReference::cpu_features() { | 57 ExternalReference ExternalReference::cpu_features() { |
57 ASSERT(CpuFeatures::initialized_); | 58 ASSERT(CpuFeatures::initialized_); |
58 return ExternalReference(&CpuFeatures::supported_); | 59 return ExternalReference(&CpuFeatures::supported_); |
59 } | 60 } |
60 | 61 |
61 | 62 |
62 // Get the CPU features enabled by the build. For cross compilation the | 63 // Get the CPU features enabled by the build. For cross compilation the |
(...skipping 3374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3437 | 3438 |
3438 // Since a constant pool was just emitted, move the check offset forward by | 3439 // Since a constant pool was just emitted, move the check offset forward by |
3439 // the standard interval. | 3440 // the standard interval. |
3440 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 3441 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
3441 } | 3442 } |
3442 | 3443 |
3443 | 3444 |
3444 } } // namespace v8::internal | 3445 } } // namespace v8::internal |
3445 | 3446 |
3446 #endif // V8_TARGET_ARCH_ARM | 3447 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |