OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class Execution : public AllStatic { | 47 class Execution : public AllStatic { |
48 public: | 48 public: |
49 // Call a function, the caller supplies a receiver and an array | 49 // Call a function, the caller supplies a receiver and an array |
50 // of arguments. Arguments are Object* type. After function returns, | 50 // of arguments. Arguments are Object* type. After function returns, |
51 // pointers in 'args' might be invalid. | 51 // pointers in 'args' might be invalid. |
52 // | 52 // |
53 // *pending_exception tells whether the invoke resulted in | 53 // *pending_exception tells whether the invoke resulted in |
54 // a pending exception. | 54 // a pending exception. |
55 // | 55 // |
56 static Handle<Object> Call(Handle<JSFunction> func, | 56 static Handle<Object> Call(Handle<Object> callable, |
57 Handle<Object> receiver, | 57 Handle<Object> receiver, |
58 int argc, | 58 int argc, |
59 Object*** args, | 59 Object*** args, |
60 bool* pending_exception); | 60 bool* pending_exception); |
61 | 61 |
62 // Construct object from function, the caller supplies an array of | 62 // Construct object from function, the caller supplies an array of |
63 // arguments. Arguments are Object* type. After function returns, | 63 // arguments. Arguments are Object* type. After function returns, |
64 // pointers in 'args' might be invalid. | 64 // pointers in 'args' might be invalid. |
65 // | 65 // |
66 // *pending_exception tells whether the invoke resulted in | 66 // *pending_exception tells whether the invoke resulted in |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 friend class StackLimitCheck; | 288 friend class StackLimitCheck; |
289 friend class PostponeInterruptsScope; | 289 friend class PostponeInterruptsScope; |
290 | 290 |
291 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 291 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
292 }; | 292 }; |
293 | 293 |
294 | 294 |
295 } } // namespace v8::internal | 295 } } // namespace v8::internal |
296 | 296 |
297 #endif // V8_EXECUTION_H_ | 297 #endif // V8_EXECUTION_H_ |
OLD | NEW |