| 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); | |
| 143 | 141 |
| 144 // Get a function delegate (or undefined) for the given non-function | 142 // Get a function delegate (or undefined) for the given non-function |
| 145 // object. Used for support calling objects as constructors. | 143 // object. Used for support calling objects as constructors. |
| 146 static Handle<Object> GetConstructorDelegate(Handle<Object> object); | 144 static Handle<Object> GetConstructorDelegate(Handle<Object> object); |
| 147 }; | 145 }; |
| 148 | 146 |
| 149 | 147 |
| 150 class ExecutionAccess; | 148 class ExecutionAccess; |
| 151 class Isolate; | 149 class Isolate; |
| 152 | 150 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 friend class StackLimitCheck; | 282 friend class StackLimitCheck; |
| 285 friend class PostponeInterruptsScope; | 283 friend class PostponeInterruptsScope; |
| 286 | 284 |
| 287 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 285 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 288 }; | 286 }; |
| 289 | 287 |
| 290 | 288 |
| 291 } } // namespace v8::internal | 289 } } // namespace v8::internal |
| 292 | 290 |
| 293 #endif // V8_EXECUTION_H_ | 291 #endif // V8_EXECUTION_H_ |
| OLD | NEW |