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

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: 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
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 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 // Get function and call it, if possible. 1543 // Get function and call it, if possible.
1544 __ movl(EAX, Address(EBX, target_offset)); 1544 __ movl(EAX, Address(EBX, target_offset));
1545 __ movl(EBX, FieldAddress(EAX, Function::instructions_offset())); 1545 __ movl(EBX, FieldAddress(EAX, Function::instructions_offset()));
1546 1546
1547 // EBX: Target instructions. 1547 // EBX: Target instructions.
1548 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); 1548 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
1549 __ jmp(EBX); 1549 __ jmp(EBX);
1550 } 1550 }
1551 1551
1552 1552
1553 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1554 GenerateUsageCounterIncrement(assembler, EBX);
1555 GenerateNArgsCheckInlineCacheStub(
1556 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1557 }
1558
1559
1553 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1560 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1554 GenerateUsageCounterIncrement(assembler, EBX); 1561 GenerateUsageCounterIncrement(assembler, EBX);
1555 GenerateNArgsCheckInlineCacheStub( 1562 GenerateNArgsCheckInlineCacheStub(
1556 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1563 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1557 } 1564 }
1558 1565
1559 1566
1560 // Stub for compiling a function and jumping to the compiled code. 1567 // Stub for compiling a function and jumping to the compiled code.
1561 // ECX: IC-Data (for methods). 1568 // ECX: IC-Data (for methods).
1562 // EDX: Arguments descriptor. 1569 // EDX: Arguments descriptor.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 const Register temp = ECX; 1936 const Register temp = ECX;
1930 __ movl(left, Address(ESP, 2 * kWordSize)); 1937 __ movl(left, Address(ESP, 2 * kWordSize));
1931 __ movl(right, Address(ESP, 1 * kWordSize)); 1938 __ movl(right, Address(ESP, 1 * kWordSize));
1932 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1939 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1933 __ ret(); 1940 __ ret();
1934 } 1941 }
1935 1942
1936 } // namespace dart 1943 } // namespace dart
1937 1944
1938 #endif // defined TARGET_ARCH_IA32 1945 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698