| 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 24 matching lines...) Expand all Loading... |
| 35 // Copyright 2012 the V8 project authors. All rights reserved. | 35 // Copyright 2012 the V8 project authors. All rights reserved. |
| 36 | 36 |
| 37 #include "src/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 "src/arm/assembler-arm-inl.h" | 41 #include "src/arm/assembler-arm-inl.h" |
| 42 #include "src/base/bits.h" | 42 #include "src/base/bits.h" |
| 43 #include "src/base/cpu.h" | 43 #include "src/base/cpu.h" |
| 44 #include "src/macro-assembler.h" | 44 #include "src/macro-assembler.h" |
| 45 #include "src/serialize.h" | |
| 46 | 45 |
| 47 namespace v8 { | 46 namespace v8 { |
| 48 namespace internal { | 47 namespace internal { |
| 49 | 48 |
| 50 // Get the CPU features enabled by the build. For cross compilation the | 49 // Get the CPU features enabled by the build. For cross compilation the |
| 51 // preprocessor symbols CAN_USE_ARMV7_INSTRUCTIONS and CAN_USE_VFP3_INSTRUCTIONS | 50 // preprocessor symbols CAN_USE_ARMV7_INSTRUCTIONS and CAN_USE_VFP3_INSTRUCTIONS |
| 52 // can be defined to enable ARMv7 and VFPv3 instructions when building the | 51 // can be defined to enable ARMv7 and VFPv3 instructions when building the |
| 53 // snapshot. | 52 // snapshot. |
| 54 static unsigned CpuFeaturesImpliedByCompiler() { | 53 static unsigned CpuFeaturesImpliedByCompiler() { |
| 55 unsigned answer = 0; | 54 unsigned answer = 0; |
| (...skipping 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3986 assm->instr_at_put( | 3985 assm->instr_at_put( |
| 3987 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); | 3986 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); |
| 3988 } | 3987 } |
| 3989 } | 3988 } |
| 3990 } | 3989 } |
| 3991 | 3990 |
| 3992 | 3991 |
| 3993 } } // namespace v8::internal | 3992 } } // namespace v8::internal |
| 3994 | 3993 |
| 3995 #endif // V8_TARGET_ARCH_ARM | 3994 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |