OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 89 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
90 void Call(Register target, Condition cond = al); | 90 void Call(Register target, Condition cond = al); |
91 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); | 91 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); |
92 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 92 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
93 void Ret(Condition cond = al); | 93 void Ret(Condition cond = al); |
94 | 94 |
95 // Emit code to discard a non-negative number of pointer-sized elements | 95 // Emit code to discard a non-negative number of pointer-sized elements |
96 // from the stack, clobbering only the sp register. | 96 // from the stack, clobbering only the sp register. |
97 void Drop(int count, Condition cond = al); | 97 void Drop(int count, Condition cond = al); |
98 | 98 |
99 void Ret(int drop, Condition cond = al); | |
100 | 99 |
101 // Swap two registers. If the scratch register is omitted then a slightly | 100 // Swap two registers. If the scratch register is omitted then a slightly |
102 // less efficient form using xor instead of mov is emitted. | 101 // less efficient form using xor instead of mov is emitted. |
103 void Swap(Register reg1, | 102 void Swap(Register reg1, |
104 Register reg2, | 103 Register reg2, |
105 Register scratch = no_reg, | 104 Register scratch = no_reg, |
106 Condition cond = al); | 105 Condition cond = al); |
107 | 106 |
108 | 107 |
109 void And(Register dst, Register src1, const Operand& src2, | 108 void And(Register dst, Register src1, const Operand& src2, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // Invoke the JavaScript function in the given register. Changes the | 291 // Invoke the JavaScript function in the given register. Changes the |
293 // current context to the context in the function before invoking. | 292 // current context to the context in the function before invoking. |
294 void InvokeFunction(Register function, | 293 void InvokeFunction(Register function, |
295 const ParameterCount& actual, | 294 const ParameterCount& actual, |
296 InvokeFlag flag); | 295 InvokeFlag flag); |
297 | 296 |
298 void InvokeFunction(JSFunction* function, | 297 void InvokeFunction(JSFunction* function, |
299 const ParameterCount& actual, | 298 const ParameterCount& actual, |
300 InvokeFlag flag); | 299 InvokeFlag flag); |
301 | 300 |
302 void IsObjectJSObjectType(Register heap_object, | |
303 Register map, | |
304 Register scratch, | |
305 Label* fail); | |
306 | |
307 void IsInstanceJSObjectType(Register map, | |
308 Register scratch, | |
309 Label* fail); | |
310 | |
311 void IsObjectJSStringType(Register object, | |
312 Register scratch, | |
313 Label* fail); | |
314 | 301 |
315 #ifdef ENABLE_DEBUGGER_SUPPORT | 302 #ifdef ENABLE_DEBUGGER_SUPPORT |
316 // --------------------------------------------------------------------------- | 303 // --------------------------------------------------------------------------- |
317 // Debugger Support | 304 // Debugger Support |
318 | 305 |
319 void DebugBreak(); | 306 void DebugBreak(); |
320 #endif | 307 #endif |
321 | 308 |
322 // --------------------------------------------------------------------------- | 309 // --------------------------------------------------------------------------- |
323 // Exception handling | 310 // Exception handling |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 806 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 807 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
821 #else | 808 #else |
822 #define ACCESS_MASM(masm) masm-> | 809 #define ACCESS_MASM(masm) masm-> |
823 #endif | 810 #endif |
824 | 811 |
825 | 812 |
826 } } // namespace v8::internal | 813 } } // namespace v8::internal |
827 | 814 |
828 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 815 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |