OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // argument is given as a result which does not have to be eax or | 324 // argument is given as a result which does not have to be eax or |
325 // even a register. The argument is consumed by the call. | 325 // even a register. The argument is consumed by the call. |
326 Result CallStub(CodeStub* stub, Result* arg); | 326 Result CallStub(CodeStub* stub, Result* arg); |
327 | 327 |
328 // Call stub that takes a pair of arguments passed in edx (arg0) and | 328 // Call stub that takes a pair of arguments passed in edx (arg0) and |
329 // eax (arg1). The arguments are given as results which do not have | 329 // eax (arg1). The arguments are given as results which do not have |
330 // to be in the proper registers or even in registers. The | 330 // to be in the proper registers or even in registers. The |
331 // arguments are consumed by the call. | 331 // arguments are consumed by the call. |
332 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); | 332 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); |
333 | 333 |
| 334 // Call JS function from top of the stack with arguments |
| 335 // taken from the stack. |
| 336 Result CallJSFunction(int arg_count); |
| 337 |
334 // Call runtime given the number of arguments expected on (and | 338 // Call runtime given the number of arguments expected on (and |
335 // removed from) the stack. | 339 // removed from) the stack. |
336 Result CallRuntime(Runtime::Function* f, int arg_count); | 340 Result CallRuntime(Runtime::Function* f, int arg_count); |
337 Result CallRuntime(Runtime::FunctionId id, int arg_count); | 341 Result CallRuntime(Runtime::FunctionId id, int arg_count); |
338 | 342 |
339 #ifdef ENABLE_DEBUGGER_SUPPORT | 343 #ifdef ENABLE_DEBUGGER_SUPPORT |
340 void DebugBreak(); | 344 void DebugBreak(); |
341 #endif | 345 #endif |
342 | 346 |
343 // Invoke builtin given the number of arguments it expects on (and | 347 // Invoke builtin given the number of arguments it expects on (and |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 inline bool Equals(VirtualFrame* other); | 627 inline bool Equals(VirtualFrame* other); |
624 | 628 |
625 // Classes that need raw access to the elements_ array. | 629 // Classes that need raw access to the elements_ array. |
626 friend class DeferredCode; | 630 friend class DeferredCode; |
627 friend class JumpTarget; | 631 friend class JumpTarget; |
628 }; | 632 }; |
629 | 633 |
630 } } // namespace v8::internal | 634 } } // namespace v8::internal |
631 | 635 |
632 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 636 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |