| Index: runtime/vm/code_descriptors.h
|
| ===================================================================
|
| --- runtime/vm/code_descriptors.h (revision 26962)
|
| +++ runtime/vm/code_descriptors.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #ifndef VM_CODE_DESCRIPTORS_H_
|
| #define VM_CODE_DESCRIPTORS_H_
|
|
|
| +#include "vm/ast.h"
|
| #include "vm/code_generator.h"
|
| #include "vm/globals.h"
|
| #include "vm/growable_array.h"
|
| @@ -136,6 +137,17 @@
|
| }
|
|
|
|
|
| + // Called by rethrows, to mark their enclosing handlers.
|
| + void SetNeedsStacktrace(intptr_t try_index) {
|
| + // Rethrows can be generated outside a try by the compiler.
|
| + if (try_index == CatchClauseNode::kInvalidTryIndex) {
|
| + return;
|
| + }
|
| + ASSERT((0 <= try_index) && (try_index < Length()));
|
| + list_[try_index].needs_stacktrace = true;
|
| + }
|
| +
|
| +
|
| static bool ContainsDynamic(const Array& array) {
|
| for (intptr_t i = 0; i < array.Length(); i++) {
|
| if (array.At(i) == Type::DynamicType()) {
|
|
|