Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 2133823002: Improve hot reload test mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rmacnak review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698