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

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;
2826 2828
2827 static intptr_t InstanceSize() { 2829 static intptr_t InstanceSize() {
2828 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, 2830 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers,
2829 data_)); 2831 data_));
2830 return 0; 2832 return 0;
2831 } 2833 }
2832 static intptr_t InstanceSize(intptr_t len) { 2834 static intptr_t InstanceSize(intptr_t len) {
(...skipping 3298 matching lines...) Expand 10 before | Expand all | Expand 10 after
6131 6133
6132 6134
6133 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6135 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6134 intptr_t index) { 6136 intptr_t index) {
6135 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6137 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6136 } 6138 }
6137 6139
6138 } // namespace dart 6140 } // namespace dart
6139 6141
6140 #endif // VM_OBJECT_H_ 6142 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698