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

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

Issue 14858033: Implement breakpoint for closure calls (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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_patcher.h ('k') | runtime/vm/code_patcher_ia32.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 "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 9
10 #include "vm/instructions.h" 10 #include "vm/instructions.h"
11 #include "vm/object.h" 11 #include "vm/object.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 RawArray* CodePatcher::GetClosureArgDescAt(uword return_address,
16 const Code& code) {
17 ASSERT(code.ContainsInstructionAt(return_address));
18 CallPattern call(return_address, code);
19 return call.ArgumentsDescriptor();
20 }
21
22
15 uword CodePatcher::GetStaticCallTargetAt(uword return_address, 23 uword CodePatcher::GetStaticCallTargetAt(uword return_address,
16 const Code& code) { 24 const Code& code) {
17 ASSERT(code.ContainsInstructionAt(return_address)); 25 ASSERT(code.ContainsInstructionAt(return_address));
18 CallPattern call(return_address, code); 26 CallPattern call(return_address, code);
19 return call.TargetAddress(); 27 return call.TargetAddress();
20 } 28 }
21 29
22 30
23 void CodePatcher::PatchStaticCallAt(uword return_address, 31 void CodePatcher::PatchStaticCallAt(uword return_address,
24 const Code& code, 32 const Code& code,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 71
64 intptr_t CodePatcher::InstanceCallSizeInBytes() { 72 intptr_t CodePatcher::InstanceCallSizeInBytes() {
65 // The instance call instruction sequence has a variable size on ARM. 73 // The instance call instruction sequence has a variable size on ARM.
66 UNREACHABLE(); 74 UNREACHABLE();
67 return 0; 75 return 0;
68 } 76 }
69 77
70 } // namespace dart 78 } // namespace dart
71 79
72 #endif // defined TARGET_ARCH_ARM 80 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher.h ('k') | runtime/vm/code_patcher_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698