| 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 | 348 |
| 349 bool FlowGraphCompiler::CanOSRFunction() const { | 349 bool FlowGraphCompiler::CanOSRFunction() const { |
| 350 return FLAG_use_osr & CanOptimizeFunction() && !is_optimizing(); | 350 return FLAG_use_osr & CanOptimizeFunction() && !is_optimizing(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 | 353 |
| 354 bool FlowGraphCompiler::ForceSlowPathForStackOverflow() const { | 354 bool FlowGraphCompiler::ForceSlowPathForStackOverflow() const { |
| 355 if ((FLAG_stacktrace_every > 0) || | 355 if ((FLAG_stacktrace_every > 0) || |
| 356 (FLAG_deoptimize_every > 0) || | 356 (FLAG_deoptimize_every > 0) || |
| 357 (FLAG_reload_every > 0)) { | 357 (isolate()->reload_every_n_stack_overflow_checks() > 0)) { |
| 358 return true; | 358 return true; |
| 359 } | 359 } |
| 360 if (FLAG_stacktrace_filter != NULL && | 360 if (FLAG_stacktrace_filter != NULL && |
| 361 strstr(parsed_function().function().ToFullyQualifiedCString(), | 361 strstr(parsed_function().function().ToFullyQualifiedCString(), |
| 362 FLAG_stacktrace_filter) != NULL) { | 362 FLAG_stacktrace_filter) != NULL) { |
| 363 return true; | 363 return true; |
| 364 } | 364 } |
| 365 if (is_optimizing() && | 365 if (is_optimizing() && |
| 366 FLAG_deoptimize_filter != NULL && | 366 FLAG_deoptimize_filter != NULL && |
| 367 strstr(parsed_function().function().ToFullyQualifiedCString(), | 367 strstr(parsed_function().function().ToFullyQualifiedCString(), |
| (...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 | 2002 |
| 2003 | 2003 |
| 2004 void FlowGraphCompiler::FrameStateClear() { | 2004 void FlowGraphCompiler::FrameStateClear() { |
| 2005 ASSERT(!is_optimizing()); | 2005 ASSERT(!is_optimizing()); |
| 2006 frame_state_.TruncateTo(0); | 2006 frame_state_.TruncateTo(0); |
| 2007 } | 2007 } |
| 2008 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 2008 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 2009 | 2009 |
| 2010 | 2010 |
| 2011 } // namespace dart | 2011 } // namespace dart |
| OLD | NEW |