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

Side by Side Diff: runtime/vm/stub_code_arm64.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_arm.cc ('k') | runtime/vm/stub_code_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 __ Bind(&stepping); 1595 __ Bind(&stepping);
1596 __ EnterStubFrame(); 1596 __ EnterStubFrame();
1597 __ Push(R5); // Preserve IC data. 1597 __ Push(R5); // Preserve IC data.
1598 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); 1598 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
1599 __ Pop(R5); 1599 __ Pop(R5);
1600 __ LeaveStubFrame(); 1600 __ LeaveStubFrame();
1601 __ b(&done_stepping); 1601 __ b(&done_stepping);
1602 } 1602 }
1603 1603
1604 1604
1605 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1606 GenerateUsageCounterIncrement(assembler, R6);
1607 GenerateNArgsCheckInlineCacheStub(
1608 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1609 }
1610
1611
1605 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1612 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1606 GenerateUsageCounterIncrement(assembler, R6); 1613 GenerateUsageCounterIncrement(assembler, R6);
1607 GenerateNArgsCheckInlineCacheStub( 1614 GenerateNArgsCheckInlineCacheStub(
1608 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1615 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1609 } 1616 }
1610 1617
1611 1618
1612 // Stub for compiling a function and jumping to the compiled code. 1619 // Stub for compiling a function and jumping to the compiled code.
1613 // R5: IC-Data (for methods). 1620 // R5: IC-Data (for methods).
1614 // R4: Arguments descriptor. 1621 // R4: Arguments descriptor.
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 const Register right = R0; 1969 const Register right = R0;
1963 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP); 1970 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP);
1964 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP); 1971 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP);
1965 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1972 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1966 __ ret(); 1973 __ ret();
1967 } 1974 }
1968 1975
1969 } // namespace dart 1976 } // namespace dart
1970 1977
1971 #endif // defined TARGET_ARCH_ARM64 1978 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698