| OLD | NEW |
| 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" | 5 #include "vm/globals.h" |
| 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/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1539 | 1539 |
| 1540 | 1540 |
| 1541 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub( | 1541 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub( |
| 1542 Assembler* assembler) { | 1542 Assembler* assembler) { |
| 1543 GenerateOptimizedUsageCounterIncrement(assembler); | 1543 GenerateOptimizedUsageCounterIncrement(assembler); |
| 1544 GenerateNArgsCheckInlineCacheStub(assembler, 3, | 1544 GenerateNArgsCheckInlineCacheStub(assembler, 3, |
| 1545 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL); | 1545 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL); |
| 1546 } | 1546 } |
| 1547 | 1547 |
| 1548 | 1548 |
| 1549 // Do not count as no type feedback is collected. | |
| 1550 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { | |
| 1551 GenerateNArgsCheckInlineCacheStub(assembler, 1, | |
| 1552 kInlineCacheMissHandlerOneArgRuntimeEntry, Token::kILLEGAL); | |
| 1553 } | |
| 1554 | |
| 1555 | |
| 1556 // Intermediary stub between a static call and its target. ICData contains | 1549 // Intermediary stub between a static call and its target. ICData contains |
| 1557 // the target function and the call count. | 1550 // the target function and the call count. |
| 1558 // RBX: ICData | 1551 // RBX: ICData |
| 1559 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { | 1552 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1560 GenerateUsageCounterIncrement(assembler, RCX); | 1553 GenerateUsageCounterIncrement(assembler, RCX); |
| 1561 #if defined(DEBUG) | 1554 #if defined(DEBUG) |
| 1562 { Label ok; | 1555 { Label ok; |
| 1563 // Check that the IC data array has NumArgsTested() == 0. | 1556 // Check that the IC data array has NumArgsTested() == 0. |
| 1564 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. | 1557 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. |
| 1565 __ movl(RCX, FieldAddress(RBX, ICData::state_bits_offset())); | 1558 __ movl(RCX, FieldAddress(RBX, ICData::state_bits_offset())); |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2009 | 2002 |
| 2010 __ movq(left, Address(RSP, 2 * kWordSize)); | 2003 __ movq(left, Address(RSP, 2 * kWordSize)); |
| 2011 __ movq(right, Address(RSP, 1 * kWordSize)); | 2004 __ movq(right, Address(RSP, 1 * kWordSize)); |
| 2012 GenerateIdenticalWithNumberCheckStub(assembler, left, right); | 2005 GenerateIdenticalWithNumberCheckStub(assembler, left, right); |
| 2013 __ ret(); | 2006 __ ret(); |
| 2014 } | 2007 } |
| 2015 | 2008 |
| 2016 } // namespace dart | 2009 } // namespace dart |
| 2017 | 2010 |
| 2018 #endif // defined TARGET_ARCH_X64 | 2011 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |