| 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 #ifndef V8_S390_MACRO_ASSEMBLER_S390_H_ | 5 #ifndef V8_S390_MACRO_ASSEMBLER_S390_H_ |
| 6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ | 6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 void Jump(Register target); | 181 void Jump(Register target); |
| 182 void JumpToJSEntry(Register target); | 182 void JumpToJSEntry(Register target); |
| 183 void Jump(Address target, RelocInfo::Mode rmode, Condition cond = al, | 183 void Jump(Address target, RelocInfo::Mode rmode, Condition cond = al, |
| 184 CRegister cr = cr7); | 184 CRegister cr = cr7); |
| 185 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 185 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
| 186 void Call(Register target); | 186 void Call(Register target); |
| 187 void CallJSEntry(Register target); | 187 void CallJSEntry(Register target); |
| 188 void Call(Address target, RelocInfo::Mode rmode, Condition cond = al); | 188 void Call(Address target, RelocInfo::Mode rmode, Condition cond = al); |
| 189 int CallSize(Handle<Code> code, | 189 int CallSize(Handle<Code> code, |
| 190 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, | 190 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, |
| 191 TypeFeedbackId ast_id = TypeFeedbackId::None(), | |
| 192 Condition cond = al); | 191 Condition cond = al); |
| 193 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, | 192 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, |
| 194 TypeFeedbackId ast_id = TypeFeedbackId::None(), | |
| 195 Condition cond = al); | 193 Condition cond = al); |
| 196 void Ret() { b(r14); } | 194 void Ret() { b(r14); } |
| 197 void Ret(Condition cond) { b(cond, r14); } | 195 void Ret(Condition cond) { b(cond, r14); } |
| 198 | 196 |
| 199 // Emit code that loads |parameter_index|'th parameter from the stack to | 197 // Emit code that loads |parameter_index|'th parameter from the stack to |
| 200 // the register according to the CallInterfaceDescriptor definition. | 198 // the register according to the CallInterfaceDescriptor definition. |
| 201 // |sp_to_caller_sp_offset_in_words| specifies the number of words pushed | 199 // |sp_to_caller_sp_offset_in_words| specifies the number of words pushed |
| 202 // below the caller's sp. | 200 // below the caller's sp. |
| 203 template <class Descriptor> | 201 template <class Descriptor> |
| 204 void LoadParameterFromStack( | 202 void LoadParameterFromStack( |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 // and brought into the range -2^31 .. +2^31 - 1. 'result' and 'input' must be | 1207 // and brought into the range -2^31 .. +2^31 - 1. 'result' and 'input' must be |
| 1210 // different registers. | 1208 // different registers. |
| 1211 void TruncateNumberToI(Register object, Register result, | 1209 void TruncateNumberToI(Register object, Register result, |
| 1212 Register heap_number_map, Register scratch1, | 1210 Register heap_number_map, Register scratch1, |
| 1213 Label* not_int32); | 1211 Label* not_int32); |
| 1214 | 1212 |
| 1215 // --------------------------------------------------------------------------- | 1213 // --------------------------------------------------------------------------- |
| 1216 // Runtime calls | 1214 // Runtime calls |
| 1217 | 1215 |
| 1218 // Call a code stub. | 1216 // Call a code stub. |
| 1219 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None(), | 1217 void CallStub(CodeStub* stub, |
| 1220 Condition cond = al); | 1218 Condition cond = al); |
| 1221 | 1219 |
| 1222 // Call a code stub. | 1220 // Call a code stub. |
| 1223 void TailCallStub(CodeStub* stub, Condition cond = al); | 1221 void TailCallStub(CodeStub* stub, Condition cond = al); |
| 1224 | 1222 |
| 1225 // Call a runtime routine. | 1223 // Call a runtime routine. |
| 1226 void CallRuntime(const Runtime::Function* f, int num_arguments, | 1224 void CallRuntime(const Runtime::Function* f, int num_arguments, |
| 1227 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1225 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1228 void CallRuntimeSaveDoubles(Runtime::FunctionId fid) { | 1226 void CallRuntimeSaveDoubles(Runtime::FunctionId fid) { |
| 1229 const Runtime::Function* function = Runtime::FunctionForId(fid); | 1227 const Runtime::Function* function = Runtime::FunctionForId(fid); |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 inline MemOperand NativeContextMemOperand() { | 1820 inline MemOperand NativeContextMemOperand() { |
| 1823 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1821 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
| 1824 } | 1822 } |
| 1825 | 1823 |
| 1826 #define ACCESS_MASM(masm) masm-> | 1824 #define ACCESS_MASM(masm) masm-> |
| 1827 | 1825 |
| 1828 } // namespace internal | 1826 } // namespace internal |
| 1829 } // namespace v8 | 1827 } // namespace v8 |
| 1830 | 1828 |
| 1831 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ | 1829 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ |
| OLD | NEW |