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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 static void ProcessDebugMesssages(bool debug_command_only); | 131 static void ProcessDebugMesssages(bool debug_command_only); |
132 #endif | 132 #endif |
133 | 133 |
134 // If the stack guard is triggered, but it is not an actual | 134 // If the stack guard is triggered, but it is not an actual |
135 // stack overflow, then handle the interruption accordingly. | 135 // stack overflow, then handle the interruption accordingly. |
136 MUST_USE_RESULT static MaybeObject* HandleStackGuardInterrupt(); | 136 MUST_USE_RESULT static MaybeObject* HandleStackGuardInterrupt(); |
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, |
| 142 bool* has_pending_exception); |
141 | 143 |
142 // Get a function delegate (or undefined) for the given non-function | 144 // Get a function delegate (or undefined) for the given non-function |
143 // object. Used for support calling objects as constructors. | 145 // object. Used for support calling objects as constructors. |
144 static Handle<Object> GetConstructorDelegate(Handle<Object> object); | 146 static Handle<Object> GetConstructorDelegate(Handle<Object> object); |
145 }; | 147 }; |
146 | 148 |
147 | 149 |
148 class ExecutionAccess; | 150 class ExecutionAccess; |
149 class Isolate; | 151 class Isolate; |
150 | 152 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 friend class StackLimitCheck; | 284 friend class StackLimitCheck; |
283 friend class PostponeInterruptsScope; | 285 friend class PostponeInterruptsScope; |
284 | 286 |
285 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 287 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
286 }; | 288 }; |
287 | 289 |
288 | 290 |
289 } } // namespace v8::internal | 291 } } // namespace v8::internal |
290 | 292 |
291 #endif // V8_EXECUTION_H_ | 293 #endif // V8_EXECUTION_H_ |
OLD | NEW |