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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 a code stub, given the number of arguments it expects on (and |
252 // removes from) the top of the physical frame. | 252 // removes from) the top of the physical frame. |
253 Result CallStub(CodeStub* stub, int frame_arg_count); | 253 Result CallStub(CodeStub* stub, int arg_count); |
254 Result CallStub(CodeStub* stub, Result* arg, int frame_arg_count); | 254 Result CallStub(CodeStub* stub, Result* arg, int arg_count); |
255 Result CallStub(CodeStub* stub, | 255 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1, int arg_count); |
256 Result* arg0, | |
257 Result* arg1, | |
258 int frame_arg_count); | |
259 | 256 |
260 // Call the runtime, given the number of arguments expected on (and | 257 // Call the runtime, given the number of arguments expected on (and |
261 // removed from) the top of the physical frame. | 258 // removed from) the top of the physical frame. |
262 Result CallRuntime(Runtime::Function* f, int frame_arg_count); | 259 Result CallRuntime(Runtime::Function* f, int arg_count); |
263 Result CallRuntime(Runtime::FunctionId id, int frame_arg_count); | 260 Result CallRuntime(Runtime::FunctionId id, int arg_count); |
264 | 261 |
265 // Invoke a builtin, given the number of arguments it expects on (and | 262 // Invoke a builtin, given the number of arguments it expects on (and |
266 // removes from) the top of the physical frame. | 263 // removes from) the top of the physical frame. |
267 Result InvokeBuiltin(Builtins::JavaScript id, | 264 Result InvokeBuiltin(Builtins::JavaScript id, |
268 InvokeJSFlags flag, | 265 InvokeJSFlags flag, |
269 Result* arg_count_register, | 266 Result* arg_count_register, |
270 int frame_arg_count); | 267 int arg_count); |
271 | 268 |
272 // Call into a JS code object, given the number of arguments it | 269 // Call into a JS code object, given the number of arguments it |
273 // removes from the top of the physical frame. | 270 // removes from the top of the physical frame. |
274 // Register arguments are passed as results and consumed by the call. | 271 // Register arguments are passed as results and consumed by the call. |
275 Result CallCodeObject(Handle<Code> ic, | 272 Result CallCodeObject(Handle<Code> ic, |
276 RelocInfo::Mode rmode, | 273 RelocInfo::Mode rmode, |
277 int dropped_args); | 274 int dropped_args); |
278 Result CallCodeObject(Handle<Code> ic, | 275 Result CallCodeObject(Handle<Code> ic, |
279 RelocInfo::Mode rmode, | 276 RelocInfo::Mode rmode, |
280 Result* arg, | 277 Result* arg, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 448 |
452 // Invalidates a frame slot (puts an invalid frame element in it). | 449 // Invalidates a frame slot (puts an invalid frame element in it). |
453 // Copies on the frame are correctly handled, and if this slot was | 450 // Copies on the frame are correctly handled, and if this slot was |
454 // the backing store of copies, the index of the new backing store | 451 // the backing store of copies, the index of the new backing store |
455 // is returned. Otherwise, returns kIllegalIndex. | 452 // is returned. Otherwise, returns kIllegalIndex. |
456 // Register counts are correctly updated. | 453 // Register counts are correctly updated. |
457 int InvalidateFrameSlotAt(int index); | 454 int InvalidateFrameSlotAt(int index); |
458 | 455 |
459 // Call a code stub that has already been prepared for calling (via | 456 // Call a code stub that has already been prepared for calling (via |
460 // PrepareForCall). | 457 // PrepareForCall). |
461 Result RawCallStub(CodeStub* stub, int frame_arg_count); | 458 Result RawCallStub(CodeStub* stub); |
462 | 459 |
463 // Calls a code object which has already been prepared for calling | 460 // Calls a code object which has already been prepared for calling |
464 // (via PrepareForCall). | 461 // (via PrepareForCall). |
465 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 462 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
466 | 463 |
467 bool Equals(VirtualFrame* other); | 464 bool Equals(VirtualFrame* other); |
468 | 465 |
469 friend class JumpTarget; | 466 friend class JumpTarget; |
470 }; | 467 }; |
471 | 468 |
472 | 469 |
473 } } // namespace v8::internal | 470 } } // namespace v8::internal |
474 | 471 |
475 #endif // V8_VIRTUAL_FRAME_ARM_H_ | 472 #endif // V8_VIRTUAL_FRAME_ARM_H_ |
OLD | NEW |