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 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 | 1512 |
1513 | 1513 |
1514 void StubCode::GenerateSmiEqualInlineCacheStub(Assembler* assembler) { | 1514 void StubCode::GenerateSmiEqualInlineCacheStub(Assembler* assembler) { |
1515 GenerateUsageCounterIncrement(assembler, RCX); | 1515 GenerateUsageCounterIncrement(assembler, RCX); |
1516 GenerateNArgsCheckInlineCacheStub(assembler, 2, | 1516 GenerateNArgsCheckInlineCacheStub(assembler, 2, |
1517 kInlineCacheMissHandlerTwoArgsRuntimeEntry, | 1517 kInlineCacheMissHandlerTwoArgsRuntimeEntry, |
1518 Token::kEQ); | 1518 Token::kEQ); |
1519 } | 1519 } |
1520 | 1520 |
1521 | 1521 |
1522 void StubCode::GenerateUnaryRangeCollectingInlineCacheStub( | |
1523 Assembler* assembler) { | |
1524 GenerateUsageCounterIncrement(assembler, RCX); | |
1525 GenerateNArgsCheckInlineCacheStub(assembler, 1, | |
1526 kInlineCacheMissHandlerOneArgRuntimeEntry, | |
1527 Token::kILLEGAL); | |
1528 } | |
1529 | |
1530 | |
1531 void StubCode::GenerateBinaryRangeCollectingInlineCacheStub( | |
1532 Assembler* assembler) { | |
1533 GenerateUsageCounterIncrement(assembler, RCX); | |
1534 GenerateNArgsCheckInlineCacheStub(assembler, 2, | |
1535 kInlineCacheMissHandlerTwoArgsRuntimeEntry, | |
1536 Token::kILLEGAL); | |
1537 } | |
1538 | |
1539 | |
1540 // Use inline cache data array to invoke the target or continue in inline | 1522 // Use inline cache data array to invoke the target or continue in inline |
1541 // cache miss handler. Stub for 1-argument check (receiver class). | 1523 // cache miss handler. Stub for 1-argument check (receiver class). |
1542 // RDI: function which counter needs to be incremented. | 1524 // RDI: function which counter needs to be incremented. |
1543 // RBX: Inline cache data object. | 1525 // RBX: Inline cache data object. |
1544 // TOS(0): Return address. | 1526 // TOS(0): Return address. |
1545 // Inline cache data object structure: | 1527 // Inline cache data object structure: |
1546 // 0: function-name | 1528 // 0: function-name |
1547 // 1: N, number of arguments checked. | 1529 // 1: N, number of arguments checked. |
1548 // 2 .. (length - 1): group of checks, each check containing: | 1530 // 2 .. (length - 1): group of checks, each check containing: |
1549 // - N classes. | 1531 // - N classes. |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2182 } | 2164 } |
2183 | 2165 |
2184 | 2166 |
2185 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2167 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
2186 __ int3(); | 2168 __ int3(); |
2187 } | 2169 } |
2188 | 2170 |
2189 } // namespace dart | 2171 } // namespace dart |
2190 | 2172 |
2191 #endif // defined TARGET_ARCH_X64 | 2173 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |