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

Side by Side Diff: runtime/vm/raw_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
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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 1193
1194 friend class Object; 1194 friend class Object;
1195 }; 1195 };
1196 1196
1197 1197
1198 class RawExceptionHandlers : public RawObject { 1198 class RawExceptionHandlers : public RawObject {
1199 public: 1199 public:
1200 // The index into the ExceptionHandlers table corresponds to 1200 // The index into the ExceptionHandlers table corresponds to
1201 // the try_index of the handler. 1201 // the try_index of the handler.
1202 struct HandlerInfo { 1202 struct HandlerInfo {
1203 intptr_t handler_pc; // PC value of handler. 1203 uint32_t handler_pc_offset; // PC offset value of handler.
1204 int16_t outer_try_index; // Try block index of enclosing try block. 1204 int16_t outer_try_index; // Try block index of enclosing try block.
1205 int8_t needs_stacktrace; // True if a stacktrace is needed. 1205 int8_t needs_stacktrace; // True if a stacktrace is needed.
1206 int8_t has_catch_all; // Catches all exceptions. 1206 int8_t has_catch_all; // Catches all exceptions.
1207 }; 1207 };
1208 1208
1209 private: 1209 private:
1210 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers); 1210 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers);
1211 1211
1212 // Number of exception handler entries. 1212 // Number of exception handler entries.
1213 int32_t num_entries_; 1213 int32_t num_entries_;
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2158 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2159 kTypedDataInt8ArrayViewCid + 15); 2159 kTypedDataInt8ArrayViewCid + 15);
2160 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2160 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2161 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2161 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2162 return (kNullCid - kTypedDataInt8ArrayCid); 2162 return (kNullCid - kTypedDataInt8ArrayCid);
2163 } 2163 }
2164 2164
2165 } // namespace dart 2165 } // namespace dart
2166 2166
2167 #endif // VM_RAW_OBJECT_H_ 2167 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object_test.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698