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

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

Issue 1343373003: Revert "VM: New calling convention for generated code." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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_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) 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 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 __ LoadClassId(R1, R1); 2087 __ LoadClassId(R1, R1);
2088 __ AddImmediate(R1, R1, -kOneByteStringCid); 2088 __ AddImmediate(R1, R1, -kOneByteStringCid);
2089 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); 2089 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2));
2090 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); 2090 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid)));
2091 2091
2092 // Registers are now set up for the lazy compile stub. It expects the function 2092 // Registers are now set up for the lazy compile stub. It expects the function
2093 // in R0, the argument descriptor in R4, and IC-Data in R5. 2093 // in R0, the argument descriptor in R4, and IC-Data in R5.
2094 __ eor(R5, R5, Operand(R5)); 2094 __ eor(R5, R5, Operand(R5));
2095 2095
2096 // Tail-call the function. 2096 // Tail-call the function.
2097 __ ldr(CODE_REG, FieldAddress(R0, Function::code_offset()));
2098 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); 2097 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset()));
2099 __ br(R1); 2098 __ br(R1);
2100 } 2099 }
2101 2100
2102 2101
2103 // On stack: user tag (+0). 2102 // On stack: user tag (+0).
2104 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { 2103 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) {
2105 // R1: Isolate. 2104 // R1: Isolate.
2106 __ LoadIsolate(R1); 2105 __ LoadIsolate(R1);
2107 // R0: Current user tag. 2106 // R0: Current user tag.
(...skipping 19 matching lines...) Expand all
2127 2126
2128 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 2127 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
2129 __ LoadIsolate(R0); 2128 __ LoadIsolate(R0);
2130 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); 2129 __ ldr(R0, Address(R0, Isolate::current_tag_offset()));
2131 __ ret(); 2130 __ ret();
2132 } 2131 }
2133 2132
2134 } // namespace dart 2133 } // namespace dart
2135 2134
2136 #endif // defined TARGET_ARCH_ARM64 2135 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698