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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1233 #if defined(DEBUG) | 1233 #if defined(DEBUG) |
1234 intptr_t increment_start = assembler_->CodeSize(); | 1234 intptr_t increment_start = assembler_->CodeSize(); |
1235 #endif // DEBUG | 1235 #endif // DEBUG |
1236 __ IncrementSmiField(FieldAddress(EAX, Array::element_offset(0)), 1); | 1236 __ IncrementSmiField(FieldAddress(EAX, Array::element_offset(0)), 1); |
1237 DEBUG_ASSERT((assembler_->CodeSize() - increment_start) == | 1237 DEBUG_ASSERT((assembler_->CodeSize() - increment_start) == |
1238 EdgeCounterIncrementSizeInBytes()); | 1238 EdgeCounterIncrementSizeInBytes()); |
1239 } | 1239 } |
1240 | 1240 |
1241 | 1241 |
1242 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { | 1242 int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() { |
1243 return VerifiedMemory::enabled() ? 16 : 4; | 1243 return VerifiedMemory::enabled() ? 50 : 4; |
Ivan Posva
2014/11/14 22:09:11
This looks like an arbitrary number. How does one
koda
2014/11/17 16:17:11
In debug mode, the ASSERT above will fail immediat
| |
1244 } | 1244 } |
1245 | 1245 |
1246 | 1246 |
1247 void FlowGraphCompiler::EmitOptimizedInstanceCall( | 1247 void FlowGraphCompiler::EmitOptimizedInstanceCall( |
1248 ExternalLabel* target_label, | 1248 ExternalLabel* target_label, |
1249 const ICData& ic_data, | 1249 const ICData& ic_data, |
1250 intptr_t argument_count, | 1250 intptr_t argument_count, |
1251 intptr_t deopt_id, | 1251 intptr_t deopt_id, |
1252 intptr_t token_pos, | 1252 intptr_t token_pos, |
1253 LocationSummary* locs) { | 1253 LocationSummary* locs) { |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1814 __ movups(reg, Address(ESP, 0)); | 1814 __ movups(reg, Address(ESP, 0)); |
1815 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1815 __ addl(ESP, Immediate(kFpuRegisterSize)); |
1816 } | 1816 } |
1817 | 1817 |
1818 | 1818 |
1819 #undef __ | 1819 #undef __ |
1820 | 1820 |
1821 } // namespace dart | 1821 } // namespace dart |
1822 | 1822 |
1823 #endif // defined TARGET_ARCH_IA32 | 1823 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |