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

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

Issue 266553003: Remove deprecated Megamorphic stub. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | 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) 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } 1440 }
1441 1441
1442 1442
1443 // Do not count as no type feedback is collected. 1443 // Do not count as no type feedback is collected.
1444 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { 1444 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) {
1445 GenerateNArgsCheckInlineCacheStub( 1445 GenerateNArgsCheckInlineCacheStub(
1446 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry); 1446 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry);
1447 } 1447 }
1448 1448
1449 1449
1450 // Megamorphic call is currently implemented as IC call but through a stub
1451 // that does not check/count function invocations.
1452 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
1453 GenerateNArgsCheckInlineCacheStub(
1454 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry);
1455 }
1456
1457
1458 // Intermediary stub between a static call and its target. ICData contains 1450 // Intermediary stub between a static call and its target. ICData contains
1459 // the target function and the call count. 1451 // the target function and the call count.
1460 // RBX: ICData 1452 // RBX: ICData
1461 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1453 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1462 GenerateUsageCounterIncrement(assembler, RCX); 1454 GenerateUsageCounterIncrement(assembler, RCX);
1463 #if defined(DEBUG) 1455 #if defined(DEBUG)
1464 { Label ok; 1456 { Label ok;
1465 // Check that the IC data array has NumArgsTested() == 0. 1457 // Check that the IC data array has NumArgsTested() == 0.
1466 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. 1458 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'.
1467 __ movl(RCX, FieldAddress(RBX, ICData::state_bits_offset())); 1459 __ movl(RCX, FieldAddress(RBX, ICData::state_bits_offset()));
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 1837
1846 __ movq(left, Address(RSP, 2 * kWordSize)); 1838 __ movq(left, Address(RSP, 2 * kWordSize));
1847 __ movq(right, Address(RSP, 1 * kWordSize)); 1839 __ movq(right, Address(RSP, 1 * kWordSize));
1848 GenerateIdenticalWithNumberCheckStub(assembler, left, right); 1840 GenerateIdenticalWithNumberCheckStub(assembler, left, right);
1849 __ ret(); 1841 __ ret();
1850 } 1842 }
1851 1843
1852 } // namespace dart 1844 } // namespace dart
1853 1845
1854 #endif // defined TARGET_ARCH_X64 1846 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698