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 126 matching lines...) Loading... |
137 | 137 |
138 // Get a function delegate (or undefined) for the given non-function | 138 // Get a function delegate (or undefined) for the given non-function |
139 // object. Used for support calling objects as functions. | 139 // object. Used for support calling objects as functions. |
140 static Handle<Object> GetFunctionDelegate(Handle<Object> object); | 140 static Handle<Object> GetFunctionDelegate(Handle<Object> object); |
141 static Handle<Object> TryGetFunctionDelegate(Handle<Object> object, | 141 static Handle<Object> TryGetFunctionDelegate(Handle<Object> object, |
142 bool* has_pending_exception); | 142 bool* has_pending_exception); |
143 | 143 |
144 // Get a function delegate (or undefined) for the given non-function | 144 // Get a function delegate (or undefined) for the given non-function |
145 // object. Used for support calling objects as constructors. | 145 // object. Used for support calling objects as constructors. |
146 static Handle<Object> GetConstructorDelegate(Handle<Object> object); | 146 static Handle<Object> GetConstructorDelegate(Handle<Object> object); |
| 147 static Handle<Object> TryGetConstructorDelegate(Handle<Object> object, |
| 148 bool* has_pending_exception); |
147 }; | 149 }; |
148 | 150 |
149 | 151 |
150 class ExecutionAccess; | 152 class ExecutionAccess; |
151 class Isolate; | 153 class Isolate; |
152 | 154 |
153 | 155 |
154 // StackGuard contains the handling of the limits that are used to limit the | 156 // StackGuard contains the handling of the limits that are used to limit the |
155 // number of nested invocations of JavaScript and the stack size used in each | 157 // number of nested invocations of JavaScript and the stack size used in each |
156 // invocation. | 158 // invocation. |
(...skipping 127 matching lines...) Loading... |
284 friend class StackLimitCheck; | 286 friend class StackLimitCheck; |
285 friend class PostponeInterruptsScope; | 287 friend class PostponeInterruptsScope; |
286 | 288 |
287 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 289 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
288 }; | 290 }; |
289 | 291 |
290 | 292 |
291 } } // namespace v8::internal | 293 } } // namespace v8::internal |
292 | 294 |
293 #endif // V8_EXECUTION_H_ | 295 #endif // V8_EXECUTION_H_ |
OLD | NEW |