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

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

Issue 1821783002: Add graph intrinsics for many math library functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_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" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 13 matching lines...) Expand all
24 // if the intrinsified method always executes a return. 24 // if the intrinsified method always executes a return.
25 // The FP register should not be modified, because it is used by the profiler. 25 // The FP register should not be modified, because it is used by the profiler.
26 // The PP and THR registers (see constants_arm64.h) must be preserved. 26 // The PP and THR registers (see constants_arm64.h) must be preserved.
27 27
28 #define __ assembler-> 28 #define __ assembler->
29 29
30 30
31 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } 31 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; }
32 32
33 33
34 void Intrinsifier::IntrinsicCallPrologue(Assembler* assembler) {
35 assembler->Comment("IntrinsicCallPrologue");
36 assembler->mov(CALLEE_SAVED_TEMP, LR);
37 assembler->mov(CALLEE_SAVED_TEMP2, R4);
38 }
39
40
41 void Intrinsifier::IntrinsicCallEpilogue(Assembler* assembler) {
42 assembler->Comment("IntrinsicCallEpilogue");
43 assembler->mov(LR, CALLEE_SAVED_TEMP);
44 assembler->mov(R4, CALLEE_SAVED_TEMP2);
45 }
46
47
34 // Intrinsify only for Smi value and index. Non-smi values need a store buffer 48 // Intrinsify only for Smi value and index. Non-smi values need a store buffer
35 // update. Array length is always a Smi. 49 // update. Array length is always a Smi.
36 void Intrinsifier::ObjectArraySetIndexed(Assembler* assembler) { 50 void Intrinsifier::ObjectArraySetIndexed(Assembler* assembler) {
37 if (Isolate::Current()->type_checks()) { 51 if (Isolate::Current()->type_checks()) {
38 return; 52 return;
39 } 53 }
40 54
41 Label fall_through; 55 Label fall_through;
42 __ ldr(R1, Address(SP, 1 * kWordSize)); // Index. 56 __ ldr(R1, Address(SP, 1 * kWordSize)); // Index.
43 __ tsti(R1, Immediate(kSmiTagMask)); 57 __ tsti(R1, Immediate(kSmiTagMask));
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 2210
2197 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 2211 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
2198 __ LoadIsolate(R0); 2212 __ LoadIsolate(R0);
2199 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); 2213 __ ldr(R0, Address(R0, Isolate::current_tag_offset()));
2200 __ ret(); 2214 __ ret();
2201 } 2215 }
2202 2216
2203 } // namespace dart 2217 } // namespace dart
2204 2218
2205 #endif // defined TARGET_ARCH_ARM64 2219 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698