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

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

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed comments 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_arm64.cc ('k') | runtime/vm/intrinsifier_x64.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) 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" // Needed here to get TARGET_ARCH_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 __ AddImmediate(T2, -kOneByteStringCid); 2118 __ AddImmediate(T2, -kOneByteStringCid);
2119 __ sll(T2, T2, kWordSizeLog2); 2119 __ sll(T2, T2, kWordSizeLog2);
2120 __ addu(T2, T2, T1); 2120 __ addu(T2, T2, T1);
2121 __ lw(T0, FieldAddress(T2, JSRegExp::function_offset(kOneByteStringCid))); 2121 __ lw(T0, FieldAddress(T2, JSRegExp::function_offset(kOneByteStringCid)));
2122 2122
2123 // Registers are now set up for the lazy compile stub. It expects the function 2123 // Registers are now set up for the lazy compile stub. It expects the function
2124 // in T0, the argument descriptor in S4, and IC-Data in S5. 2124 // in T0, the argument descriptor in S4, and IC-Data in S5.
2125 __ mov(S5, ZR); 2125 __ mov(S5, ZR);
2126 2126
2127 // Tail-call the function. 2127 // Tail-call the function.
2128 __ lw(CODE_REG, FieldAddress(T0, Function::code_offset()));
2128 __ lw(T3, FieldAddress(T0, Function::entry_point_offset())); 2129 __ lw(T3, FieldAddress(T0, Function::entry_point_offset()));
2129 __ jr(T3); 2130 __ jr(T3);
2130 } 2131 }
2131 2132
2132 2133
2133 // On stack: user tag (+0). 2134 // On stack: user tag (+0).
2134 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { 2135 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) {
2135 // T1: Isolate. 2136 // T1: Isolate.
2136 __ LoadIsolate(T1); 2137 __ LoadIsolate(T1);
2137 // V0: Current user tag. 2138 // V0: Current user tag.
(...skipping 20 matching lines...) Expand all
2158 2159
2159 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 2160 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
2160 __ LoadIsolate(V0); 2161 __ LoadIsolate(V0);
2161 __ Ret(); 2162 __ Ret();
2162 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); 2163 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset()));
2163 } 2164 }
2164 2165
2165 } // namespace dart 2166 } // namespace dart
2166 2167
2167 #endif // defined TARGET_ARCH_MIPS 2168 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698