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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 2686723004: [stubs] Port LoadFunctionPrototypeStub to CSA (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | src/arm/macro-assembler-arm.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 __ mov(lr, Operand(pc)); 1146 __ mov(lr, Operand(pc));
1147 } 1147 }
1148 #endif 1148 #endif
1149 1149
1150 // Restore callee-saved vfp registers. 1150 // Restore callee-saved vfp registers.
1151 __ vldm(ia_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg); 1151 __ vldm(ia_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg);
1152 1152
1153 __ ldm(ia_w, sp, kCalleeSaved | pc.bit()); 1153 __ ldm(ia_w, sp, kCalleeSaved | pc.bit());
1154 } 1154 }
1155 1155
1156
1157 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
1158 Label miss;
1159 Register receiver = LoadDescriptor::ReceiverRegister();
1160 // Ensure that the vector and slot registers won't be clobbered before
1161 // calling the miss handler.
1162 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::VectorRegister(),
1163 LoadWithVectorDescriptor::SlotRegister()));
1164
1165 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r4,
1166 r5, &miss);
1167 __ bind(&miss);
1168 PropertyAccessCompiler::TailCallBuiltin(
1169 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC));
1170 }
1171
1172 void RegExpExecStub::Generate(MacroAssembler* masm) { 1156 void RegExpExecStub::Generate(MacroAssembler* masm) {
1173 // Just jump directly to runtime if native RegExp is not selected at compile 1157 // Just jump directly to runtime if native RegExp is not selected at compile
1174 // time or if regexp entry in generated code is turned off runtime switch or 1158 // time or if regexp entry in generated code is turned off runtime switch or
1175 // at compilation. 1159 // at compilation.
1176 #ifdef V8_INTERPRETED_REGEXP 1160 #ifdef V8_INTERPRETED_REGEXP
1177 __ TailCallRuntime(Runtime::kRegExpExec); 1161 __ TailCallRuntime(Runtime::kRegExpExec);
1178 #else // V8_INTERPRETED_REGEXP 1162 #else // V8_INTERPRETED_REGEXP
1179 1163
1180 // Stack frame on entry. 1164 // Stack frame on entry.
1181 // sp[0]: last_match_info (expected JSArray) 1165 // sp[0]: last_match_info (expected JSArray)
(...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3340 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 3324 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
3341 kStackUnwindSpace, NULL, return_value_operand, NULL); 3325 kStackUnwindSpace, NULL, return_value_operand, NULL);
3342 } 3326 }
3343 3327
3344 #undef __ 3328 #undef __
3345 3329
3346 } // namespace internal 3330 } // namespace internal
3347 } // namespace v8 3331 } // namespace v8
3348 3332
3349 #endif // V8_TARGET_ARCH_ARM 3333 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698