Chromium Code Reviews| Index: runtime/vm/code_descriptors.h |
| =================================================================== |
| --- runtime/vm/code_descriptors.h (revision 40287) |
| +++ runtime/vm/code_descriptors.h (working copy) |
| @@ -74,7 +74,7 @@ |
| class StackmapTableBuilder : public ZoneAllocated { |
| public: |
| - explicit StackmapTableBuilder() |
|
hausner
2014/09/15 23:33:16
Unrelated to this CL. gcl upload complained about
srdjan
2014/09/15 23:47:14
gcl and its rules/tools get also occasionally upda
|
| + StackmapTableBuilder() |
| : stack_map_(Stackmap::ZoneHandle()), |
| list_(GrowableObjectArray::ZoneHandle( |
| GrowableObjectArray::New(Heap::kOld))) { } |
| @@ -162,6 +162,9 @@ |
| RawExceptionHandlers* FinalizeExceptionHandlers(uword entry_point) { |
| intptr_t num_handlers = Length(); |
| + if (num_handlers == 0) { |
| + return Object::empty_exception_handlers().raw(); |
| + } |
| const ExceptionHandlers& handlers = |
| ExceptionHandlers::Handle(ExceptionHandlers::New(num_handlers)); |
| for (intptr_t i = 0; i < num_handlers; i++) { |