OLD | NEW |
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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 271 } |
272 return call.target(); | 272 return call.target(); |
273 } | 273 } |
274 | 274 |
275 | 275 |
276 intptr_t CodePatcher::InstanceCallSizeInBytes() { | 276 intptr_t CodePatcher::InstanceCallSizeInBytes() { |
277 return InstanceCall::kCallPatternSize; | 277 return InstanceCall::kCallPatternSize; |
278 } | 278 } |
279 | 279 |
280 | 280 |
281 void CodePatcher::InsertDeoptimizationCallAt(uword start) { | |
282 UNREACHABLE(); | |
283 } | |
284 | |
285 | |
286 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address, | 281 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address, |
287 const Code& code, | 282 const Code& code, |
288 ICData* ic_data_result) { | 283 ICData* ic_data_result) { |
289 ASSERT(code.ContainsInstructionAt(return_address)); | 284 ASSERT(code.ContainsInstructionAt(return_address)); |
290 UnoptimizedStaticCall static_call(return_address, code); | 285 UnoptimizedStaticCall static_call(return_address, code); |
291 ICData& ic_data = ICData::Handle(); | 286 ICData& ic_data = ICData::Handle(); |
292 ic_data ^= static_call.ic_data(); | 287 ic_data ^= static_call.ic_data(); |
293 if (ic_data_result != NULL) { | 288 if (ic_data_result != NULL) { |
294 *ic_data_result = ic_data.raw(); | 289 *ic_data_result = ic_data.raw(); |
295 } | 290 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 NativeFunction* target) { | 335 NativeFunction* target) { |
341 ASSERT(code.ContainsInstructionAt(return_address)); | 336 ASSERT(code.ContainsInstructionAt(return_address)); |
342 NativeCall call(return_address, code); | 337 NativeCall call(return_address, code); |
343 *target = call.native_function(); | 338 *target = call.native_function(); |
344 return call.target(); | 339 return call.target(); |
345 } | 340 } |
346 | 341 |
347 } // namespace dart | 342 } // namespace dart |
348 | 343 |
349 #endif // defined TARGET_ARCH_X64 | 344 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |