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

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

Issue 868103002: VM: Use PC offset instead of absolute PC in exception handler info. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 3393 matching lines...) Expand 10 before | Expand all | Expand 10 after
3404 }; 3404 };
3405 3405
3406 3406
3407 class ExceptionHandlers : public Object { 3407 class ExceptionHandlers : public Object {
3408 public: 3408 public:
3409 intptr_t num_entries() const; 3409 intptr_t num_entries() const;
3410 3410
3411 void GetHandlerInfo(intptr_t try_index, 3411 void GetHandlerInfo(intptr_t try_index,
3412 RawExceptionHandlers::HandlerInfo* info) const; 3412 RawExceptionHandlers::HandlerInfo* info) const;
3413 3413
3414 intptr_t HandlerPC(intptr_t try_index) const; 3414 uword HandlerPCOffset(intptr_t try_index) const;
3415 intptr_t OuterTryIndex(intptr_t try_index) const; 3415 intptr_t OuterTryIndex(intptr_t try_index) const;
3416 bool NeedsStacktrace(intptr_t try_index) const; 3416 bool NeedsStacktrace(intptr_t try_index) const;
3417 3417
3418 void SetHandlerInfo(intptr_t try_index, 3418 void SetHandlerInfo(intptr_t try_index,
3419 intptr_t outer_try_index, 3419 intptr_t outer_try_index,
3420 intptr_t handler_pc, 3420 uword handler_pc_offset,
3421 bool needs_stacktrace, 3421 bool needs_stacktrace,
3422 bool has_catch_all) const; 3422 bool has_catch_all) const;
3423 3423
3424 RawArray* GetHandledTypes(intptr_t try_index) const; 3424 RawArray* GetHandledTypes(intptr_t try_index) const;
3425 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; 3425 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const;
3426 bool HasCatchAll(intptr_t try_index) const; 3426 bool HasCatchAll(intptr_t try_index) const;
3427 3427
3428 static intptr_t InstanceSize() { 3428 static intptr_t InstanceSize() {
3429 ASSERT(sizeof(RawExceptionHandlers) == 3429 ASSERT(sizeof(RawExceptionHandlers) ==
3430 OFFSET_OF_RETURNED_VALUE(RawExceptionHandlers, data)); 3430 OFFSET_OF_RETURNED_VALUE(RawExceptionHandlers, data));
(...skipping 4287 matching lines...) Expand 10 before | Expand all | Expand 10 after
7718 7718
7719 7719
7720 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7720 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7721 intptr_t index) { 7721 intptr_t index) {
7722 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7722 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7723 } 7723 }
7724 7724
7725 } // namespace dart 7725 } // namespace dart
7726 7726
7727 #endif // VM_OBJECT_H_ 7727 #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