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

Side by Side Diff: runtime/vm/stub_code_arm.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_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 __ LoadFromOffset(kWord, R0, R6, target_offset); 1488 __ LoadFromOffset(kWord, R0, R6, target_offset);
1489 __ ldr(R2, FieldAddress(R0, Function::instructions_offset())); 1489 __ ldr(R2, FieldAddress(R0, Function::instructions_offset()));
1490 1490
1491 // R0: function. 1491 // R0: function.
1492 // R2: target instructions. 1492 // R2: target instructions.
1493 __ AddImmediate(R2, Instructions::HeaderSize() - kHeapObjectTag); 1493 __ AddImmediate(R2, Instructions::HeaderSize() - kHeapObjectTag);
1494 __ bx(R2); 1494 __ bx(R2);
1495 } 1495 }
1496 1496
1497 1497
1498 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1499 GenerateUsageCounterIncrement(assembler, R6);
1500 GenerateNArgsCheckInlineCacheStub(
1501 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1502 }
1503
1504
1498 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1505 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1499 GenerateUsageCounterIncrement(assembler, R6); 1506 GenerateUsageCounterIncrement(assembler, R6);
1500 GenerateNArgsCheckInlineCacheStub( 1507 GenerateNArgsCheckInlineCacheStub(
1501 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1508 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1502 } 1509 }
1503 1510
1504 1511
1505 // Stub for compiling a function and jumping to the compiled code. 1512 // Stub for compiling a function and jumping to the compiled code.
1506 // R5: IC-Data (for methods). 1513 // R5: IC-Data (for methods).
1507 // R4: Arguments descriptor. 1514 // R4: Arguments descriptor.
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 const Register right = R0; 1863 const Register right = R0;
1857 __ ldr(left, Address(SP, 1 * kWordSize)); 1864 __ ldr(left, Address(SP, 1 * kWordSize));
1858 __ ldr(right, Address(SP, 0 * kWordSize)); 1865 __ ldr(right, Address(SP, 0 * kWordSize));
1859 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1866 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1860 __ Ret(); 1867 __ Ret();
1861 } 1868 }
1862 1869
1863 } // namespace dart 1870 } // namespace dart
1864 1871
1865 #endif // defined TARGET_ARCH_ARM 1872 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698