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 |
281 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address, | 286 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address, |
282 const Code& code, | 287 const Code& code, |
283 ICData* ic_data_result) { | 288 ICData* ic_data_result) { |
284 ASSERT(code.ContainsInstructionAt(return_address)); | 289 ASSERT(code.ContainsInstructionAt(return_address)); |
285 UnoptimizedStaticCall static_call(return_address, code); | 290 UnoptimizedStaticCall static_call(return_address, code); |
286 ICData& ic_data = ICData::Handle(); | 291 ICData& ic_data = ICData::Handle(); |
287 ic_data ^= static_call.ic_data(); | 292 ic_data ^= static_call.ic_data(); |
288 if (ic_data_result != NULL) { | 293 if (ic_data_result != NULL) { |
289 *ic_data_result = ic_data.raw(); | 294 *ic_data_result = ic_data.raw(); |
290 } | 295 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 NativeFunction* target) { | 340 NativeFunction* target) { |
336 ASSERT(code.ContainsInstructionAt(return_address)); | 341 ASSERT(code.ContainsInstructionAt(return_address)); |
337 NativeCall call(return_address, code); | 342 NativeCall call(return_address, code); |
338 *target = call.native_function(); | 343 *target = call.native_function(); |
339 return call.target(); | 344 return call.target(); |
340 } | 345 } |
341 | 346 |
342 } // namespace dart | 347 } // namespace dart |
343 | 348 |
344 #endif // defined TARGET_ARCH_X64 | 349 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |