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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // Re-throw an exception. This involves no error reporting since | 198 // Re-throw an exception. This involves no error reporting since |
199 // error reporting was handled when the exception was thrown | 199 // error reporting was handled when the exception was thrown |
200 // originally. | 200 // originally. |
201 static Failure* ReThrow(Object* exception, MessageLocation* location = NULL); | 201 static Failure* ReThrow(Object* exception, MessageLocation* location = NULL); |
202 static void ScheduleThrow(Object* exception); | 202 static void ScheduleThrow(Object* exception); |
203 | 203 |
204 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. | 204 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. |
205 static Object* PromoteScheduledException(); | 205 static Object* PromoteScheduledException(); |
206 static void DoThrow(Object* exception, | 206 static void DoThrow(Object* exception, |
207 MessageLocation* location, | 207 MessageLocation* location, |
208 const char* message, | 208 const char* message); |
209 bool is_rethrow); | |
210 static bool ShouldReportException(bool* is_caught_externally); | 209 static bool ShouldReportException(bool* is_caught_externally); |
211 static void ReportUncaughtException(Handle<Object> exception, | 210 static void ReportUncaughtException(Handle<Object> exception, |
212 MessageLocation* location, | 211 MessageLocation* location, |
213 Handle<String> stack_trace); | 212 Handle<String> stack_trace); |
214 | 213 |
215 // Attempts to compute the current source location, storing the | 214 // Attempts to compute the current source location, storing the |
216 // result in the target out parameter. | 215 // result in the target out parameter. |
217 static void ComputeLocation(MessageLocation* target); | 216 static void ComputeLocation(MessageLocation* target); |
218 | 217 |
219 // Override command line flag. | 218 // Override command line flag. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 347 |
349 class ExecutionAccess BASE_EMBEDDED { | 348 class ExecutionAccess BASE_EMBEDDED { |
350 public: | 349 public: |
351 ExecutionAccess(); | 350 ExecutionAccess(); |
352 ~ExecutionAccess(); | 351 ~ExecutionAccess(); |
353 }; | 352 }; |
354 | 353 |
355 } } // namespace v8::internal | 354 } } // namespace v8::internal |
356 | 355 |
357 #endif // V8_TOP_H_ | 356 #endif // V8_TOP_H_ |
OLD | NEW |