Chromium Code Reviews| 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/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
| 6 #include "vm/exceptions.h" | 6 #include "vm/exceptions.h" |
| 7 #include "vm/object_store.h" | 7 #include "vm/object_store.h" |
| 8 #include "vm/runtime_entry.h" | 8 #include "vm/runtime_entry.h" |
| 9 #include "vm/stack_frame.h" | 9 #include "vm/stack_frame.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 const GrowableObjectArray& code_list = | 38 const GrowableObjectArray& code_list = |
| 39 GrowableObjectArray::Handle(GrowableObjectArray::New()); | 39 GrowableObjectArray::Handle(GrowableObjectArray::New()); |
| 40 const GrowableObjectArray& pc_offset_list = | 40 const GrowableObjectArray& pc_offset_list = |
| 41 GrowableObjectArray::Handle(GrowableObjectArray::New()); | 41 GrowableObjectArray::Handle(GrowableObjectArray::New()); |
| 42 IterateFrames(code_list, pc_offset_list); | 42 IterateFrames(code_list, pc_offset_list); |
| 43 const Array& code_array = Array::Handle(Array::MakeArray(code_list)); | 43 const Array& code_array = Array::Handle(Array::MakeArray(code_list)); |
| 44 const Array& pc_offset_array = | 44 const Array& pc_offset_array = |
| 45 Array::Handle(Array::MakeArray(pc_offset_list)); | 45 Array::Handle(Array::MakeArray(pc_offset_list)); |
| 46 const Stacktrace& stacktrace = Stacktrace::Handle( | 46 const Stacktrace& stacktrace = Stacktrace::Handle( |
| 47 Stacktrace::New(code_array, pc_offset_array)); | 47 Stacktrace::New(code_array, pc_offset_array)); |
| 48 OS::PrintErr("=== Current Trace:\n%s\n===\n", stacktrace.ToCString()); | 48 OS::PrintErr("=== Current Trace:\n%s===\n", stacktrace.ToCString()); |
|
hausner
2015/02/24 22:19:21
Why are you removing the newline after the last st
Ivan Posva
2015/02/24 23:27:18
Yes, ends with a newline and then the output looke
| |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace dart | 51 } // namespace dart |
| OLD | NEW |