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

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

Issue 2690873005: Enable causal stacktrace in kernel (Closed)
Patch Set: function.set_is_inlinable to make precompiled builds work too Created 3 years, 9 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 | « no previous file | runtime/vm/kernel_to_il.cc » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/kernel_reader.h" 5 #include "vm/kernel_reader.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 function.set_kernel_function(kernel_procedure); 429 function.set_kernel_function(kernel_procedure);
430 430
431 function.set_is_debuggable( 431 function.set_is_debuggable(
432 kernel_procedure->function()->dart_async_marker() == FunctionNode::kSync); 432 kernel_procedure->function()->dart_async_marker() == FunctionNode::kSync);
433 switch (kernel_procedure->function()->dart_async_marker()) { 433 switch (kernel_procedure->function()->dart_async_marker()) {
434 case FunctionNode::kSyncStar: 434 case FunctionNode::kSyncStar:
435 function.set_modifier(RawFunction::kSyncGen); 435 function.set_modifier(RawFunction::kSyncGen);
436 break; 436 break;
437 case FunctionNode::kAsync: 437 case FunctionNode::kAsync:
438 function.set_modifier(RawFunction::kAsync); 438 function.set_modifier(RawFunction::kAsync);
439 function.set_is_inlinable(!FLAG_causal_async_stacks);
439 break; 440 break;
440 case FunctionNode::kAsyncStar: 441 case FunctionNode::kAsyncStar:
441 function.set_modifier(RawFunction::kAsyncGen); 442 function.set_modifier(RawFunction::kAsyncGen);
443 function.set_is_inlinable(!FLAG_causal_async_stacks);
442 break; 444 break;
443 default: 445 default:
444 // no special modifier 446 // no special modifier
445 break; 447 break;
446 } 448 }
447 ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync); 449 ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync);
448 450
449 if (native_name != NULL) { 451 if (native_name != NULL) {
450 function.set_native_name(*native_name); 452 function.set_native_name(*native_name);
451 } 453 }
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 initializer_fun.set_is_debuggable(false); 818 initializer_fun.set_is_debuggable(false);
817 initializer_fun.set_is_reflectable(false); 819 initializer_fun.set_is_reflectable(false);
818 initializer_fun.set_is_inlinable(false); 820 initializer_fun.set_is_inlinable(false);
819 return new (zone) ParsedFunction(thread, initializer_fun); 821 return new (zone) ParsedFunction(thread, initializer_fun);
820 } 822 }
821 823
822 824
823 } // namespace kernel 825 } // namespace kernel
824 } // namespace dart 826 } // namespace dart
825 #endif // !defined(DART_PRECOMPILED_RUNTIME) 827 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698