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