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

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

Issue 1137313002: VM: Set breakpoints on x64 and arm64 without patching code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: re-upload from git workspace Created 5 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_ia32.cc ('k') | runtime/vm/code_patcher_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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"
(...skipping 20 matching lines...) Expand all
31 31
32 void CodePatcher::PatchInstanceCallAt(uword return_address, 32 void CodePatcher::PatchInstanceCallAt(uword return_address,
33 const Code& code, 33 const Code& code,
34 uword new_target) { 34 uword new_target) {
35 ASSERT(code.ContainsInstructionAt(return_address)); 35 ASSERT(code.ContainsInstructionAt(return_address));
36 CallPattern call(return_address, code); 36 CallPattern call(return_address, code);
37 call.SetTargetAddress(new_target); 37 call.SetTargetAddress(new_target);
38 } 38 }
39 39
40 40
41 int32_t CodePatcher::GetPoolOffsetAt(uword return_address) {
42 UNIMPLEMENTED();
43 return 0;
44 }
45
46
47 void CodePatcher::SetPoolOffsetAt(uword return_address, int32_t offset) {
48 UNIMPLEMENTED();
49 }
50
51
52 void CodePatcher::InsertCallAt(uword start, uword target) { 41 void CodePatcher::InsertCallAt(uword start, uword target) {
53 // The inserted call should not overlap the lazy deopt jump code. 42 // The inserted call should not overlap the lazy deopt jump code.
54 ASSERT(start + CallPattern::kFixedLengthInBytes <= target); 43 ASSERT(start + CallPattern::kFixedLengthInBytes <= target);
55 CallPattern::InsertAt(start, target); 44 CallPattern::InsertAt(start, target);
56 } 45 }
57 46
58 47
59 uword CodePatcher::GetInstanceCallAt(uword return_address, 48 uword CodePatcher::GetInstanceCallAt(uword return_address,
60 const Code& code, 49 const Code& code,
61 ICData* ic_data) { 50 ICData* ic_data) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 113
125 RawObject* CodePatcher::GetEdgeCounterAt(uword pc, const Code& code) { 114 RawObject* CodePatcher::GetEdgeCounterAt(uword pc, const Code& code) {
126 ASSERT(code.ContainsInstructionAt(pc)); 115 ASSERT(code.ContainsInstructionAt(pc));
127 EdgeCounter counter(pc, code); 116 EdgeCounter counter(pc, code);
128 return counter.edge_counter(); 117 return counter.edge_counter();
129 } 118 }
130 119
131 } // namespace dart 120 } // namespace dart
132 121
133 #endif // defined TARGET_ARCH_MIPS 122 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_ia32.cc ('k') | runtime/vm/code_patcher_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698