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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 void StoreToParameterAt(int index) { | 234 void StoreToParameterAt(int index) { |
235 StoreToFrameSlotAt(param0_index() + index); | 235 StoreToFrameSlotAt(param0_index() + index); |
236 } | 236 } |
237 | 237 |
238 // The receiver frame slot. | 238 // The receiver frame slot. |
239 Operand Receiver() const { return ParameterAt(-1); } | 239 Operand Receiver() const { return ParameterAt(-1); } |
240 | 240 |
241 // Push a try-catch or try-finally handler on top of the virtual frame. | 241 // Push a try-catch or try-finally handler on top of the virtual frame. |
242 void PushTryHandler(HandlerType type); | 242 void PushTryHandler(HandlerType type); |
243 | 243 |
244 // Call a code stub, given the number of arguments it expects on (and | 244 // Call stub given the number of arguments it expects on (and |
245 // removes from) the top of the physical frame. | 245 // removes from) the stack. |
246 Result CallStub(CodeStub* stub, int arg_count); | 246 Result CallStub(CodeStub* stub, int arg_count); |
247 Result CallStub(CodeStub* stub, Result* arg, int arg_count); | |
248 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1, int arg_count); | |
249 | 247 |
250 // Call the runtime, given the number of arguments expected on (and | 248 // Call stub that takes a single argument passed in eax. The |
251 // removed from) the top of the physical frame. | 249 // argument is given as a result which does not have to be eax or |
| 250 // even a register. The argument is consumed by the call. |
| 251 Result CallStub(CodeStub* stub, Result* arg); |
| 252 |
| 253 // Call stub that takes a pair of arguments passed in edx (arg0) and |
| 254 // eax (arg1). The arguments are given as results which do not have |
| 255 // to be in the proper registers or even in registers. The |
| 256 // arguments are consumed by the call. |
| 257 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); |
| 258 |
| 259 // Call runtime given the number of arguments expected on (and |
| 260 // removed from) the stack. |
252 Result CallRuntime(Runtime::Function* f, int arg_count); | 261 Result CallRuntime(Runtime::Function* f, int arg_count); |
253 Result CallRuntime(Runtime::FunctionId id, int arg_count); | 262 Result CallRuntime(Runtime::FunctionId id, int arg_count); |
254 | 263 |
255 // Invoke a builtin, given the number of arguments it expects on (and | 264 // Invoke builtin given the number of arguments it expects on (and |
256 // removes from) the top of the physical frame. | 265 // removes from) the stack. |
257 Result InvokeBuiltin(Builtins::JavaScript id, | 266 Result InvokeBuiltin(Builtins::JavaScript id, |
258 InvokeFlag flag, | 267 InvokeFlag flag, |
259 int arg_count); | 268 int arg_count); |
260 | 269 |
261 // Call load IC. Name and receiver are found on top of the frame. | 270 // Call load IC. Name and receiver are found on top of the frame. |
262 // Receiver is not dropped. | 271 // Receiver is not dropped. |
263 Result CallLoadIC(RelocInfo::Mode mode); | 272 Result CallLoadIC(RelocInfo::Mode mode); |
264 | 273 |
265 // Call keyed load IC. Key and receiver are found on top of the | 274 // Call keyed load IC. Key and receiver are found on top of the |
266 // frame. They are not dropped. | 275 // frame. They are not dropped. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 479 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
471 | 480 |
472 bool Equals(VirtualFrame* other); | 481 bool Equals(VirtualFrame* other); |
473 | 482 |
474 friend class JumpTarget; | 483 friend class JumpTarget; |
475 }; | 484 }; |
476 | 485 |
477 } } // namespace v8::internal | 486 } } // namespace v8::internal |
478 | 487 |
479 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 488 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |