| 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 // 31bit ABI requires you to store f4 and f6: | 1212 // 31bit ABI requires you to store f4 and f6: |
| 1213 // http://refspecs.linuxbase.org/ELF/zSeries/lzsabi0_s390.html#AEN417 | 1213 // http://refspecs.linuxbase.org/ELF/zSeries/lzsabi0_s390.html#AEN417 |
| 1214 __ ld(d4, MemOperand(sp)); | 1214 __ ld(d4, MemOperand(sp)); |
| 1215 __ ld(d6, MemOperand(sp, kDoubleSize)); | 1215 __ ld(d6, MemOperand(sp, kDoubleSize)); |
| 1216 __ la(sp, MemOperand(sp, 2 * kDoubleSize)); | 1216 __ la(sp, MemOperand(sp, 2 * kDoubleSize)); |
| 1217 #endif | 1217 #endif |
| 1218 | 1218 |
| 1219 __ b(r14); | 1219 __ b(r14); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | |
| 1223 Label miss; | |
| 1224 Register receiver = LoadDescriptor::ReceiverRegister(); | |
| 1225 // Ensure that the vector and slot registers won't be clobbered before | |
| 1226 // calling the miss handler. | |
| 1227 DCHECK(!AreAliased(r6, r7, LoadWithVectorDescriptor::VectorRegister(), | |
| 1228 LoadWithVectorDescriptor::SlotRegister())); | |
| 1229 | |
| 1230 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r6, | |
| 1231 r7, &miss); | |
| 1232 __ bind(&miss); | |
| 1233 PropertyAccessCompiler::TailCallBuiltin( | |
| 1234 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | |
| 1235 } | |
| 1236 | |
| 1237 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1222 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 1238 // Just jump directly to runtime if native RegExp is not selected at compile | 1223 // Just jump directly to runtime if native RegExp is not selected at compile |
| 1239 // time or if regexp entry in generated code is turned off runtime switch or | 1224 // time or if regexp entry in generated code is turned off runtime switch or |
| 1240 // at compilation. | 1225 // at compilation. |
| 1241 #ifdef V8_INTERPRETED_REGEXP | 1226 #ifdef V8_INTERPRETED_REGEXP |
| 1242 __ TailCallRuntime(Runtime::kRegExpExec); | 1227 __ TailCallRuntime(Runtime::kRegExpExec); |
| 1243 #else // V8_INTERPRETED_REGEXP | 1228 #else // V8_INTERPRETED_REGEXP |
| 1244 | 1229 |
| 1245 // Stack frame on entry. | 1230 // Stack frame on entry. |
| 1246 // sp[0]: last_match_info (expected JSArray) | 1231 // sp[0]: last_match_info (expected JSArray) |
| (...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3493 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 3478 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 3494 kStackUnwindSpace, NULL, return_value_operand, NULL); | 3479 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 3495 } | 3480 } |
| 3496 | 3481 |
| 3497 #undef __ | 3482 #undef __ |
| 3498 | 3483 |
| 3499 } // namespace internal | 3484 } // namespace internal |
| 3500 } // namespace v8 | 3485 } // namespace v8 |
| 3501 | 3486 |
| 3502 #endif // V8_TARGET_ARCH_S390 | 3487 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |