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

Side by Side Diff: runtime/vm/simulator_arm.cc

Issue 382993003: More PcDescriptor cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/raw_object.cc ('k') | runtime/vm/stack_frame.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include <setjmp.h> 5 #include <setjmp.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #if defined(TARGET_ARCH_ARM) 9 #if defined(TARGET_ARCH_ARM)
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 266
267 intptr_t SimulatorDebugger::GetApproximateTokenIndex(const Code& code, 267 intptr_t SimulatorDebugger::GetApproximateTokenIndex(const Code& code,
268 uword pc) { 268 uword pc) {
269 intptr_t token_pos = -1; 269 intptr_t token_pos = -1;
270 const PcDescriptors& descriptors = 270 const PcDescriptors& descriptors =
271 PcDescriptors::Handle(code.pc_descriptors()); 271 PcDescriptors::Handle(code.pc_descriptors());
272 PcDescriptors::Iterator iter(descriptors, RawPcDescriptors::kAnyKind); 272 PcDescriptors::Iterator iter(descriptors, RawPcDescriptors::kAnyKind);
273 while (iter.HasNext()) { 273 while (iter.HasNext()) {
274 const RawPcDescriptors::PcDescriptorRec& rec = iter.Next(); 274 const RawPcDescriptors::PcDescriptorRec& rec = iter.Next();
275 if (rec.pc == pc) { 275 if (rec.pc() == pc) {
276 return rec.token_pos; 276 return rec.token_pos();
277 } else if ((token_pos <= 0) && (rec.pc > pc)) { 277 } else if ((token_pos <= 0) && (rec.pc() > pc)) {
278 token_pos = rec.token_pos; 278 token_pos = rec.token_pos();
279 } 279 }
280 } 280 }
281 return token_pos; 281 return token_pos;
282 } 282 }
283 283
284 284
285 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp, 285 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp,
286 const Function& function, 286 const Function& function,
287 intptr_t token_pos, 287 intptr_t token_pos,
288 bool is_optimized, 288 bool is_optimized,
(...skipping 3430 matching lines...) Expand 10 before | Expand all | Expand 10 after
3719 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); 3719 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception));
3720 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 3720 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
3721 buf->Longjmp(); 3721 buf->Longjmp();
3722 } 3722 }
3723 3723
3724 } // namespace dart 3724 } // namespace dart
3725 3725
3726 #endif // !defined(HOST_ARCH_ARM) 3726 #endif // !defined(HOST_ARCH_ARM)
3727 3727
3728 #endif // defined TARGET_ARCH_ARM 3728 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698