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

Side by Side Diff: runtime/vm/object.h

Issue 23445012: Mark exception handlers if they have a stacktrace specified. Do not build a stacktrace if the handl… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 2809
2810 class ExceptionHandlers : public Object { 2810 class ExceptionHandlers : public Object {
2811 public: 2811 public:
2812 intptr_t Length() const; 2812 intptr_t Length() const;
2813 2813
2814 void GetHandlerInfo(intptr_t try_index, 2814 void GetHandlerInfo(intptr_t try_index,
2815 RawExceptionHandlers::HandlerInfo* info) const; 2815 RawExceptionHandlers::HandlerInfo* info) const;
2816 2816
2817 intptr_t HandlerPC(intptr_t try_index) const; 2817 intptr_t HandlerPC(intptr_t try_index) const;
2818 intptr_t OuterTryIndex(intptr_t try_index) const; 2818 intptr_t OuterTryIndex(intptr_t try_index) const;
2819 bool NeedsStacktrace(intptr_t try_index) const;
2819 2820
2820 void SetHandlerInfo(intptr_t try_index, 2821 void SetHandlerInfo(intptr_t try_index,
2821 intptr_t outer_try_index, 2822 intptr_t outer_try_index,
2822 intptr_t handler_pc) const; 2823 intptr_t handler_pc,
2824 bool needs_stacktrace) const;
2823 2825
2824 RawArray* GetHandledTypes(intptr_t try_index) const; 2826 RawArray* GetHandledTypes(intptr_t try_index) const;
2825 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; 2827 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const;
2828 bool HasCatchAll(intptr_t try_index) const;
2826 2829
2827 static intptr_t InstanceSize() { 2830 static intptr_t InstanceSize() {
2828 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, 2831 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers,
2829 data_)); 2832 data_));
2830 return 0; 2833 return 0;
2831 } 2834 }
2832 static intptr_t InstanceSize(intptr_t len) { 2835 static intptr_t InstanceSize(intptr_t len) {
2833 return RoundedAllocationSize( 2836 return RoundedAllocationSize(
2834 sizeof(RawExceptionHandlers) + 2837 sizeof(RawExceptionHandlers) +
2835 (len * sizeof(RawExceptionHandlers::HandlerInfo))); 2838 (len * sizeof(RawExceptionHandlers::HandlerInfo)));
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after
6131 6134
6132 6135
6133 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6136 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6134 intptr_t index) { 6137 intptr_t index) {
6135 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6138 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6136 } 6139 }
6137 6140
6138 } // namespace dart 6141 } // namespace dart
6139 6142
6140 #endif // VM_OBJECT_H_ 6143 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698