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

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
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 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 void GetHandlerInfo(intptr_t try_index, 2821 void GetHandlerInfo(intptr_t try_index,
2822 RawExceptionHandlers::HandlerInfo* info) const; 2822 RawExceptionHandlers::HandlerInfo* info) const;
2823 2823
2824 intptr_t HandlerPC(intptr_t try_index) const; 2824 intptr_t HandlerPC(intptr_t try_index) const;
2825 intptr_t OuterTryIndex(intptr_t try_index) const; 2825 intptr_t OuterTryIndex(intptr_t try_index) const;
2826 bool NeedsStacktrace(intptr_t try_index) const; 2826 bool NeedsStacktrace(intptr_t try_index) const;
2827 2827
2828 void SetHandlerInfo(intptr_t try_index, 2828 void SetHandlerInfo(intptr_t try_index,
2829 intptr_t outer_try_index, 2829 intptr_t outer_try_index,
2830 intptr_t handler_pc, 2830 intptr_t handler_pc,
2831 bool needs_stacktrace) const; 2831 bool needs_stacktrace,
2832 bool has_catch_all) const;
2832 2833
2833 RawArray* GetHandledTypes(intptr_t try_index) const; 2834 RawArray* GetHandledTypes(intptr_t try_index) const;
2834 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; 2835 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const;
2835 bool HasCatchAll(intptr_t try_index) const; 2836 bool HasCatchAll(intptr_t try_index) const;
2836 2837
2837 static intptr_t InstanceSize() { 2838 static intptr_t InstanceSize() {
2838 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, 2839 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers,
2839 data_)); 2840 data_));
2840 return 0; 2841 return 0;
2841 } 2842 }
(...skipping 3307 matching lines...) Expand 10 before | Expand all | Expand 10 after
6149 6150
6150 6151
6151 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6152 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6152 intptr_t index) { 6153 intptr_t index) {
6153 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6154 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6154 } 6155 }
6155 6156
6156 } // namespace dart 6157 } // namespace dart
6157 6158
6158 #endif // VM_OBJECT_H_ 6159 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698