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

Side by Side Diff: src/mips64/code-stubs-mips64.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 | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1265
1266 // Restore callee-saved fpu registers. 1266 // Restore callee-saved fpu registers.
1267 __ MultiPopFPU(kCalleeSavedFPU); 1267 __ MultiPopFPU(kCalleeSavedFPU);
1268 1268
1269 // Restore callee saved registers from the stack. 1269 // Restore callee saved registers from the stack.
1270 __ MultiPop(kCalleeSaved | ra.bit()); 1270 __ MultiPop(kCalleeSaved | ra.bit());
1271 // Return. 1271 // Return.
1272 __ Jump(ra); 1272 __ Jump(ra);
1273 } 1273 }
1274 1274
1275 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
1276 Label miss;
1277 Register receiver = LoadDescriptor::ReceiverRegister();
1278 // Ensure that the vector and slot registers won't be clobbered before
1279 // calling the miss handler.
1280 DCHECK(!AreAliased(a4, a5, LoadWithVectorDescriptor::VectorRegister(),
1281 LoadWithVectorDescriptor::SlotRegister()));
1282
1283 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, a4,
1284 a5, &miss);
1285 __ bind(&miss);
1286 PropertyAccessCompiler::TailCallBuiltin(
1287 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC));
1288 }
1289
1290
1291 void RegExpExecStub::Generate(MacroAssembler* masm) { 1275 void RegExpExecStub::Generate(MacroAssembler* masm) {
1292 // Just jump directly to runtime if native RegExp is not selected at compile 1276 // Just jump directly to runtime if native RegExp is not selected at compile
1293 // time or if regexp entry in generated code is turned off runtime switch or 1277 // time or if regexp entry in generated code is turned off runtime switch or
1294 // at compilation. 1278 // at compilation.
1295 #ifdef V8_INTERPRETED_REGEXP 1279 #ifdef V8_INTERPRETED_REGEXP
1296 __ TailCallRuntime(Runtime::kRegExpExec); 1280 __ TailCallRuntime(Runtime::kRegExpExec);
1297 #else // V8_INTERPRETED_REGEXP 1281 #else // V8_INTERPRETED_REGEXP
1298 1282
1299 // Stack frame on entry. 1283 // Stack frame on entry.
1300 // sp[0]: last_match_info (expected JSArray) 1284 // sp[0]: last_match_info (expected JSArray)
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 kStackUnwindSpace, kInvalidStackOffset, 3536 kStackUnwindSpace, kInvalidStackOffset,
3553 return_value_operand, NULL); 3537 return_value_operand, NULL);
3554 } 3538 }
3555 3539
3556 #undef __ 3540 #undef __
3557 3541
3558 } // namespace internal 3542 } // namespace internal
3559 } // namespace v8 3543 } // namespace v8
3560 3544
3561 #endif // V8_TARGET_ARCH_MIPS64 3545 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698