| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 expected); | 1215 expected); |
| 1216 } | 1216 } |
| 1217 #endif // DEBUG | 1217 #endif // DEBUG |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 | 1220 |
| 1221 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { | 1221 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { |
| 1222 // Used by CodePatcher; so must be constant across all code in an isolate. | 1222 // Used by CodePatcher; so must be constant across all code in an isolate. |
| 1223 int32_t size = 3 * Instr::kInstrSize; | 1223 int32_t size = 3 * Instr::kInstrSize; |
| 1224 #if defined(DEBUG) | 1224 #if defined(DEBUG) |
| 1225 size += 35 * Instr::kInstrSize; | 1225 if (TargetCPUFeatures::arm_version() == ARMv7) { |
| 1226 size += 35 * Instr::kInstrSize; |
| 1227 } else { |
| 1228 // To update this number for e.g. ARMv6, run a SIMARM build with |
| 1229 // --sim_use_armv6 on any Dart program. |
| 1230 size += 51 * Instr::kInstrSize; |
| 1231 } |
| 1226 #endif // DEBUG | 1232 #endif // DEBUG |
| 1227 if (VerifiedMemory::enabled()) { | 1233 if (VerifiedMemory::enabled()) { |
| 1228 size += 20 * Instr::kInstrSize; | 1234 if (TargetCPUFeatures::arm_version() == ARMv7) { |
| 1235 size += 20 * Instr::kInstrSize; |
| 1236 } else { |
| 1237 // To update this number for e.g. ARMv6, run a SIMARM build with |
| 1238 // --sim_use_armv6 --verified_mem on any Dart program. |
| 1239 size += 28 * Instr::kInstrSize; |
| 1240 } |
| 1229 } | 1241 } |
| 1230 return size; | 1242 return size; |
| 1231 } | 1243 } |
| 1232 | 1244 |
| 1233 | 1245 |
| 1234 void FlowGraphCompiler::EmitOptimizedInstanceCall( | 1246 void FlowGraphCompiler::EmitOptimizedInstanceCall( |
| 1235 ExternalLabel* target_label, | 1247 ExternalLabel* target_label, |
| 1236 const ICData& ic_data, | 1248 const ICData& ic_data, |
| 1237 intptr_t argument_count, | 1249 intptr_t argument_count, |
| 1238 intptr_t deopt_id, | 1250 intptr_t deopt_id, |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 DRegister dreg = EvenDRegisterOf(reg); | 1900 DRegister dreg = EvenDRegisterOf(reg); |
| 1889 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1901 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1890 } | 1902 } |
| 1891 | 1903 |
| 1892 | 1904 |
| 1893 #undef __ | 1905 #undef __ |
| 1894 | 1906 |
| 1895 } // namespace dart | 1907 } // namespace dart |
| 1896 | 1908 |
| 1897 #endif // defined TARGET_ARCH_ARM | 1909 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |