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

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

Issue 551043002: VM: Remove unused IsClosureCall bit from IC data. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
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_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 1568
1569 1569
1570 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub( 1570 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub(
1571 Assembler* assembler) { 1571 Assembler* assembler) {
1572 GenerateOptimizedUsageCounterIncrement(assembler); 1572 GenerateOptimizedUsageCounterIncrement(assembler);
1573 GenerateNArgsCheckInlineCacheStub(assembler, 3, 1573 GenerateNArgsCheckInlineCacheStub(assembler, 3,
1574 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL); 1574 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL);
1575 } 1575 }
1576 1576
1577 1577
1578 // Do not count as no type feedback is collected.
1579 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) {
1580 GenerateNArgsCheckInlineCacheStub(assembler, 1,
1581 kInlineCacheMissHandlerOneArgRuntimeEntry, Token::kILLEGAL);
1582 }
1583
1584
1585 // Intermediary stub between a static call and its target. ICData contains 1578 // Intermediary stub between a static call and its target. ICData contains
1586 // the target function and the call count. 1579 // the target function and the call count.
1587 // ECX: ICData 1580 // ECX: ICData
1588 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1581 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1589 GenerateUsageCounterIncrement(assembler, EBX); 1582 GenerateUsageCounterIncrement(assembler, EBX);
1590 1583
1591 #if defined(DEBUG) 1584 #if defined(DEBUG)
1592 { Label ok; 1585 { Label ok;
1593 // Check that the IC data array has NumArgsTested() == num_args. 1586 // Check that the IC data array has NumArgsTested() == num_args.
1594 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. 1587 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'.
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 const Register temp = ECX; 2027 const Register temp = ECX;
2035 __ movl(left, Address(ESP, 2 * kWordSize)); 2028 __ movl(left, Address(ESP, 2 * kWordSize));
2036 __ movl(right, Address(ESP, 1 * kWordSize)); 2029 __ movl(right, Address(ESP, 1 * kWordSize));
2037 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 2030 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
2038 __ ret(); 2031 __ ret();
2039 } 2032 }
2040 2033
2041 } // namespace dart 2034 } // namespace dart
2042 2035
2043 #endif // defined TARGET_ARCH_IA32 2036 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698