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

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

Issue 2488423004: Fix build. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger_dbc.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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ASSERT(code.ContainsInstructionAt(return_address)); 156 ASSERT(code.ContainsInstructionAt(return_address));
157 StaticCall call(return_address); 157 StaticCall call(return_address);
158 return call.target(); 158 return call.target();
159 } 159 }
160 160
161 161
162 void CodePatcher::PatchStaticCallAt(uword return_address, 162 void CodePatcher::PatchStaticCallAt(uword return_address,
163 const Code& code, 163 const Code& code,
164 const Code& new_target) { 164 const Code& new_target) {
165 const Instructions& instrs = Instructions::Handle(code.instructions()); 165 const Instructions& instrs = Instructions::Handle(code.instructions());
166 WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); 166 WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size());
167 ASSERT(code.ContainsInstructionAt(return_address)); 167 ASSERT(code.ContainsInstructionAt(return_address));
168 StaticCall call(return_address); 168 StaticCall call(return_address);
169 call.set_target(new_target); 169 call.set_target(new_target);
170 } 170 }
171 171
172 172
173 void CodePatcher::InsertDeoptimizationCallAt(uword start) { 173 void CodePatcher::InsertDeoptimizationCallAt(uword start) {
174 UNREACHABLE(); 174 UNREACHABLE();
175 } 175 }
176 176
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 244
245 intptr_t CodePatcher::InstanceCallSizeInBytes() { 245 intptr_t CodePatcher::InstanceCallSizeInBytes() {
246 return InstanceCall::kPatternSize; 246 return InstanceCall::kPatternSize;
247 } 247 }
248 248
249 } // namespace dart 249 } // namespace dart
250 250
251 #endif // defined TARGET_ARCH_IA32 251 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698