OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 | 1213 |
1214 // Restore callee-saved registers. | 1214 // Restore callee-saved registers. |
1215 __ MultiPop(kCalleeSaved); | 1215 __ MultiPop(kCalleeSaved); |
1216 | 1216 |
1217 // Return | 1217 // Return |
1218 __ LoadP(r0, MemOperand(sp, kStackFrameLRSlot * kPointerSize)); | 1218 __ LoadP(r0, MemOperand(sp, kStackFrameLRSlot * kPointerSize)); |
1219 __ mtlr(r0); | 1219 __ mtlr(r0); |
1220 __ blr(); | 1220 __ blr(); |
1221 } | 1221 } |
1222 | 1222 |
1223 | |
1224 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | |
1225 Label miss; | |
1226 Register receiver = LoadDescriptor::ReceiverRegister(); | |
1227 // Ensure that the vector and slot registers won't be clobbered before | |
1228 // calling the miss handler. | |
1229 DCHECK(!AreAliased(r7, r8, LoadWithVectorDescriptor::VectorRegister(), | |
1230 LoadWithVectorDescriptor::SlotRegister())); | |
1231 | |
1232 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r7, | |
1233 r8, &miss); | |
1234 __ bind(&miss); | |
1235 PropertyAccessCompiler::TailCallBuiltin( | |
1236 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | |
1237 } | |
1238 | |
1239 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1223 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1240 // Just jump directly to runtime if native RegExp is not selected at compile | 1224 // Just jump directly to runtime if native RegExp is not selected at compile |
1241 // time or if regexp entry in generated code is turned off runtime switch or | 1225 // time or if regexp entry in generated code is turned off runtime switch or |
1242 // at compilation. | 1226 // at compilation. |
1243 #ifdef V8_INTERPRETED_REGEXP | 1227 #ifdef V8_INTERPRETED_REGEXP |
1244 __ TailCallRuntime(Runtime::kRegExpExec); | 1228 __ TailCallRuntime(Runtime::kRegExpExec); |
1245 #else // V8_INTERPRETED_REGEXP | 1229 #else // V8_INTERPRETED_REGEXP |
1246 | 1230 |
1247 // Stack frame on entry. | 1231 // Stack frame on entry. |
1248 // sp[0]: last_match_info (expected JSArray) | 1232 // sp[0]: last_match_info (expected JSArray) |
(...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3545 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 3529 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
3546 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 3530 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
3547 kStackUnwindSpace, NULL, return_value_operand, NULL); | 3531 kStackUnwindSpace, NULL, return_value_operand, NULL); |
3548 } | 3532 } |
3549 | 3533 |
3550 #undef __ | 3534 #undef __ |
3551 } // namespace internal | 3535 } // namespace internal |
3552 } // namespace v8 | 3536 } // namespace v8 |
3553 | 3537 |
3554 #endif // V8_TARGET_ARCH_PPC | 3538 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |