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 16 matching lines...) Expand all Loading... |
27 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 27 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 28 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
29 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 29 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
30 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 30 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
31 // OF THE POSSIBILITY OF SUCH DAMAGE. | 31 // OF THE POSSIBILITY OF SUCH DAMAGE. |
32 | 32 |
33 // The original source code covered by the above license above has been | 33 // The original source code covered by the above license above has been |
34 // modified significantly by Google Inc. | 34 // modified significantly by Google Inc. |
35 // Copyright 2012 the V8 project authors. All rights reserved. | 35 // Copyright 2012 the V8 project authors. All rights reserved. |
36 | 36 |
37 #include "v8.h" | 37 #include "src/v8.h" |
38 | 38 |
39 #if V8_TARGET_ARCH_ARM | 39 #if V8_TARGET_ARCH_ARM |
40 | 40 |
41 #include "arm/assembler-arm-inl.h" | 41 #include "src/arm/assembler-arm-inl.h" |
42 #include "macro-assembler.h" | 42 #include "src/macro-assembler.h" |
43 #include "serialize.h" | 43 #include "src/serialize.h" |
44 | 44 |
45 namespace v8 { | 45 namespace v8 { |
46 namespace internal { | 46 namespace internal { |
47 | 47 |
48 // Get the CPU features enabled by the build. For cross compilation the | 48 // Get the CPU features enabled by the build. For cross compilation the |
49 // preprocessor symbols CAN_USE_ARMV7_INSTRUCTIONS and CAN_USE_VFP3_INSTRUCTIONS | 49 // preprocessor symbols CAN_USE_ARMV7_INSTRUCTIONS and CAN_USE_VFP3_INSTRUCTIONS |
50 // can be defined to enable ARMv7 and VFPv3 instructions when building the | 50 // can be defined to enable ARMv7 and VFPv3 instructions when building the |
51 // snapshot. | 51 // snapshot. |
52 static unsigned CpuFeaturesImpliedByCompiler() { | 52 static unsigned CpuFeaturesImpliedByCompiler() { |
53 unsigned answer = 0; | 53 unsigned answer = 0; |
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3653 ASSERT((index_64bit == count_of_64bit_) && | 3653 ASSERT((index_64bit == count_of_64bit_) && |
3654 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && | 3654 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && |
3655 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && | 3655 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && |
3656 (index_32bit == (index_heap_ptr + count_of_32bit_))); | 3656 (index_32bit == (index_heap_ptr + count_of_32bit_))); |
3657 } | 3657 } |
3658 | 3658 |
3659 | 3659 |
3660 } } // namespace v8::internal | 3660 } } // namespace v8::internal |
3661 | 3661 |
3662 #endif // V8_TARGET_ARCH_ARM | 3662 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |