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

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

Issue 23531008: Last round of cleanups in exception handler, before going to the next stage. (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
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 void GetHandlerInfo(intptr_t try_index, 2823 void GetHandlerInfo(intptr_t try_index,
2824 RawExceptionHandlers::HandlerInfo* info) const; 2824 RawExceptionHandlers::HandlerInfo* info) const;
2825 2825
2826 intptr_t HandlerPC(intptr_t try_index) const; 2826 intptr_t HandlerPC(intptr_t try_index) const;
2827 intptr_t OuterTryIndex(intptr_t try_index) const; 2827 intptr_t OuterTryIndex(intptr_t try_index) const;
2828 bool NeedsStacktrace(intptr_t try_index) const; 2828 bool NeedsStacktrace(intptr_t try_index) const;
2829 2829
2830 void SetHandlerInfo(intptr_t try_index, 2830 void SetHandlerInfo(intptr_t try_index,
2831 intptr_t outer_try_index, 2831 intptr_t outer_try_index,
2832 intptr_t handler_pc, 2832 intptr_t handler_pc,
2833 bool needs_stacktrace) const; 2833 bool needs_stacktrace,
2834 bool has_catch_all) const;
2834 2835
2835 RawArray* GetHandledTypes(intptr_t try_index) const; 2836 RawArray* GetHandledTypes(intptr_t try_index) const;
2836 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; 2837 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const;
2837 bool HasCatchAll(intptr_t try_index) const; 2838 bool HasCatchAll(intptr_t try_index) const;
2838 2839
2839 static intptr_t InstanceSize() { 2840 static intptr_t InstanceSize() {
2840 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, 2841 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers,
2841 data_)); 2842 data_));
2842 return 0; 2843 return 0;
2843 } 2844 }
(...skipping 3307 matching lines...) Expand 10 before | Expand all | Expand 10 after
6151 6152
6152 6153
6153 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6154 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6154 intptr_t index) { 6155 intptr_t index) {
6155 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6156 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6156 } 6157 }
6157 6158
6158 } // namespace dart 6159 } // namespace dart
6159 6160
6160 #endif // VM_OBJECT_H_ 6161 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698