| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // calling this will return 1.0 and otherwise 0.0. | 198 // calling this will return 1.0 and otherwise 0.0. |
| 199 static void ArmUsingHardFloatHelper() { | 199 static void ArmUsingHardFloatHelper() { |
| 200 asm("mov r0, #0"); | 200 asm("mov r0, #0"); |
| 201 #if defined(__VFP_FP__) && !defined(__SOFTFP__) | 201 #if defined(__VFP_FP__) && !defined(__SOFTFP__) |
| 202 // Load 0x3ff00000 into r1 using instructions available in both ARM | 202 // Load 0x3ff00000 into r1 using instructions available in both ARM |
| 203 // and Thumb mode. | 203 // and Thumb mode. |
| 204 asm("mov r1, #3"); | 204 asm("mov r1, #3"); |
| 205 asm("mov r2, #255"); | 205 asm("mov r2, #255"); |
| 206 asm("lsl r1, r1, #8"); | 206 asm("lsl r1, r1, #8"); |
| 207 asm("orr r1, r1, r2"); | 207 asm("orr r1, r1, r2"); |
| 208 asm("lsl r1, r1, #16"); | 208 asm("lsl r1, r1, #20"); |
| 209 // For vmov d0, r0, r1 use ARM mode. | 209 // For vmov d0, r0, r1 use ARM mode. |
| 210 #ifdef __thumb__ | 210 #ifdef __thumb__ |
| 211 asm volatile( | 211 asm volatile( |
| 212 "@ Enter ARM Mode \n\t" | 212 "@ Enter ARM Mode \n\t" |
| 213 " adr r3, 1f \n\t" | 213 " adr r3, 1f \n\t" |
| 214 " bx r3 \n\t" | 214 " bx r3 \n\t" |
| 215 " .ALIGN 4 \n\t" | 215 " .ALIGN 4 \n\t" |
| 216 " .ARM \n" | 216 " .ARM \n" |
| 217 "1: vmov d0, r0, r1 \n\t" | 217 "1: vmov d0, r0, r1 \n\t" |
| 218 "@ Enter THUMB Mode\n\t" | 218 "@ Enter THUMB Mode\n\t" |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1140 |
| 1141 void Sampler::Stop() { | 1141 void Sampler::Stop() { |
| 1142 ASSERT(IsActive()); | 1142 ASSERT(IsActive()); |
| 1143 SignalSender::RemoveActiveSampler(this); | 1143 SignalSender::RemoveActiveSampler(this); |
| 1144 SetActive(false); | 1144 SetActive(false); |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 #endif // ENABLE_LOGGING_AND_PROFILING | 1147 #endif // ENABLE_LOGGING_AND_PROFILING |
| 1148 | 1148 |
| 1149 } } // namespace v8::internal | 1149 } } // namespace v8::internal |
| OLD | NEW |