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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 // Exception throwing support. The caller should use the result | 233 // Exception throwing support. The caller should use the result |
234 // of Throw() as its return value. | 234 // of Throw() as its return value. |
235 static Failure* Throw(Object* exception, MessageLocation* location = NULL); | 235 static Failure* Throw(Object* exception, MessageLocation* location = NULL); |
236 // Re-throw an exception. This involves no error reporting since | 236 // Re-throw an exception. This involves no error reporting since |
237 // error reporting was handled when the exception was thrown | 237 // error reporting was handled when the exception was thrown |
238 // originally. | 238 // originally. |
239 static Failure* ReThrow(Object* exception, MessageLocation* location = NULL); | 239 static Failure* ReThrow(Object* exception, MessageLocation* location = NULL); |
240 static void ScheduleThrow(Object* exception); | 240 static void ScheduleThrow(Object* exception); |
241 static void ReportPendingMessages(); | 241 static void ReportPendingMessages(); |
| 242 static Failure* ThrowIllegalOperation(); |
242 | 243 |
243 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. | 244 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. |
244 static Object* PromoteScheduledException(); | 245 static Object* PromoteScheduledException(); |
245 static void DoThrow(Object* exception, | 246 static void DoThrow(Object* exception, |
246 MessageLocation* location, | 247 MessageLocation* location, |
247 const char* message); | 248 const char* message); |
248 static bool ShouldReportException(bool* is_caught_externally); | 249 static bool ShouldReportException(bool* is_caught_externally); |
249 static void ReportUncaughtException(Handle<Object> exception, | 250 static void ReportUncaughtException(Handle<Object> exception, |
250 MessageLocation* location, | 251 MessageLocation* location, |
251 Handle<String> stack_trace); | 252 Handle<String> stack_trace); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 397 |
397 class ExecutionAccess BASE_EMBEDDED { | 398 class ExecutionAccess BASE_EMBEDDED { |
398 public: | 399 public: |
399 ExecutionAccess(); | 400 ExecutionAccess(); |
400 ~ExecutionAccess(); | 401 ~ExecutionAccess(); |
401 }; | 402 }; |
402 | 403 |
403 } } // namespace v8::internal | 404 } } // namespace v8::internal |
404 | 405 |
405 #endif // V8_TOP_H_ | 406 #endif // V8_TOP_H_ |
OLD | NEW |