OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 void StoreToParameterAt(int index) { | 241 void StoreToParameterAt(int index) { |
242 StoreToFrameSlotAt(param0_index() + index); | 242 StoreToFrameSlotAt(param0_index() + index); |
243 } | 243 } |
244 | 244 |
245 // The receiver frame slot. | 245 // The receiver frame slot. |
246 MemOperand Receiver() const { return ParameterAt(-1); } | 246 MemOperand Receiver() const { return ParameterAt(-1); } |
247 | 247 |
248 // Push a try-catch or try-finally handler on top of the virtual frame. | 248 // Push a try-catch or try-finally handler on top of the virtual frame. |
249 void PushTryHandler(HandlerType type); | 249 void PushTryHandler(HandlerType type); |
250 | 250 |
251 // Call a code stub, given the number of arguments it expects on (and | 251 // Call stub given the number of arguments it expects on (and |
252 // removes from) the top of the physical frame. | 252 // removes from) the stack. |
253 Result CallStub(CodeStub* stub, int arg_count); | 253 Result CallStub(CodeStub* stub, int arg_count); |
254 Result CallStub(CodeStub* stub, Result* arg, int arg_count); | |
255 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1, int arg_count); | |
256 | 254 |
257 // Call the runtime, given the number of arguments expected on (and | 255 // Call stub that expects its argument in r0. The argument is given |
258 // removed from) the top of the physical frame. | 256 // as a result which must be the register r0. |
| 257 Result CallStub(CodeStub* stub, Result* arg); |
| 258 |
| 259 // Call stub that expects its arguments in r1 and r0. The arguments |
| 260 // are given as results which must be the appropriate registers. |
| 261 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); |
| 262 |
| 263 // Call runtime given the number of arguments expected on (and |
| 264 // removed from) the stack. |
259 Result CallRuntime(Runtime::Function* f, int arg_count); | 265 Result CallRuntime(Runtime::Function* f, int arg_count); |
260 Result CallRuntime(Runtime::FunctionId id, int arg_count); | 266 Result CallRuntime(Runtime::FunctionId id, int arg_count); |
261 | 267 |
262 // Invoke a builtin, given the number of arguments it expects on (and | 268 // Invoke builtin given the number of arguments it expects on (and |
263 // removes from) the top of the physical frame. | 269 // removes from) the stack. |
264 Result InvokeBuiltin(Builtins::JavaScript id, | 270 Result InvokeBuiltin(Builtins::JavaScript id, |
265 InvokeJSFlags flag, | 271 InvokeJSFlags flag, |
266 Result* arg_count_register, | 272 Result* arg_count_register, |
267 int arg_count); | 273 int arg_count); |
268 | 274 |
269 // Call into a JS code object, given the number of arguments it | 275 // Call into an IC stub given the number of arguments it removes |
270 // removes from the top of the physical frame. | 276 // from the stack. Register arguments are passed as results and |
271 // Register arguments are passed as results and consumed by the call. | 277 // consumed by the call. |
272 Result CallCodeObject(Handle<Code> ic, | 278 Result CallCodeObject(Handle<Code> ic, |
273 RelocInfo::Mode rmode, | 279 RelocInfo::Mode rmode, |
274 int dropped_args); | 280 int dropped_args); |
275 Result CallCodeObject(Handle<Code> ic, | 281 Result CallCodeObject(Handle<Code> ic, |
276 RelocInfo::Mode rmode, | 282 RelocInfo::Mode rmode, |
277 Result* arg, | 283 Result* arg, |
278 int dropped_args); | 284 int dropped_args); |
279 Result CallCodeObject(Handle<Code> ic, | 285 Result CallCodeObject(Handle<Code> ic, |
280 RelocInfo::Mode rmode, | 286 RelocInfo::Mode rmode, |
281 Result* arg0, | 287 Result* arg0, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 471 |
466 bool Equals(VirtualFrame* other); | 472 bool Equals(VirtualFrame* other); |
467 | 473 |
468 friend class JumpTarget; | 474 friend class JumpTarget; |
469 }; | 475 }; |
470 | 476 |
471 | 477 |
472 } } // namespace v8::internal | 478 } } // namespace v8::internal |
473 | 479 |
474 #endif // V8_VIRTUAL_FRAME_ARM_H_ | 480 #endif // V8_VIRTUAL_FRAME_ARM_H_ |
OLD | NEW |