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

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

Issue 484693003: Improve polymorphic inlining of int/int double/double operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased and addressed comments Created 6 years, 4 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_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | 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_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 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 __ Bind(&stepping); 1545 __ Bind(&stepping);
1546 __ EnterStubFrame(); 1546 __ EnterStubFrame();
1547 __ pushl(ECX); 1547 __ pushl(ECX);
1548 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); 1548 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
1549 __ popl(ECX); 1549 __ popl(ECX);
1550 __ LeaveFrame(); 1550 __ LeaveFrame();
1551 __ jmp(&done_stepping, Assembler::kNearJump); 1551 __ jmp(&done_stepping, Assembler::kNearJump);
1552 } 1552 }
1553 1553
1554 1554
1555 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1556 GenerateUsageCounterIncrement(assembler, EBX);
1557 GenerateNArgsCheckInlineCacheStub(
1558 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1559 }
1560
1561
1555 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1562 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1556 GenerateUsageCounterIncrement(assembler, EBX); 1563 GenerateUsageCounterIncrement(assembler, EBX);
1557 GenerateNArgsCheckInlineCacheStub( 1564 GenerateNArgsCheckInlineCacheStub(
1558 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1565 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1559 } 1566 }
1560 1567
1561 1568
1562 // Stub for compiling a function and jumping to the compiled code. 1569 // Stub for compiling a function and jumping to the compiled code.
1563 // ECX: IC-Data (for methods). 1570 // ECX: IC-Data (for methods).
1564 // EDX: Arguments descriptor. 1571 // EDX: Arguments descriptor.
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 const Register temp = ECX; 1941 const Register temp = ECX;
1935 __ movl(left, Address(ESP, 2 * kWordSize)); 1942 __ movl(left, Address(ESP, 2 * kWordSize));
1936 __ movl(right, Address(ESP, 1 * kWordSize)); 1943 __ movl(right, Address(ESP, 1 * kWordSize));
1937 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1944 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1938 __ ret(); 1945 __ ret();
1939 } 1946 }
1940 1947
1941 } // namespace dart 1948 } // namespace dart
1942 1949
1943 #endif // defined TARGET_ARCH_IA32 1950 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698