Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1110)

Side by Side Diff: src/top.h

Issue 179062: Fix the handling of termination exceptions thrown when creating error... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/messages.js ('k') | src/top.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 thread_local_.pending_message_obj_ = Heap::the_hole_value(); 150 thread_local_.pending_message_obj_ = Heap::the_hole_value();
151 thread_local_.pending_message_script_ = NULL; 151 thread_local_.pending_message_script_ = NULL;
152 } 152 }
153 static v8::TryCatch* try_catch_handler() { 153 static v8::TryCatch* try_catch_handler() {
154 return thread_local_.try_catch_handler_; 154 return thread_local_.try_catch_handler_;
155 } 155 }
156 // This method is called by the api after operations that may throw 156 // This method is called by the api after operations that may throw
157 // exceptions. If an exception was thrown and not handled by an external 157 // exceptions. If an exception was thrown and not handled by an external
158 // handler the exception is scheduled to be rethrown when we return to running 158 // handler the exception is scheduled to be rethrown when we return to running
159 // JavaScript code. If an exception is scheduled true is returned. 159 // JavaScript code. If an exception is scheduled true is returned.
160 static bool OptionalRescheduleException(bool is_bottom_call, 160 static bool OptionalRescheduleException(bool is_bottom_call);
161 bool force_clear_catchable); 161
162 162
163 static bool* external_caught_exception_address() { 163 static bool* external_caught_exception_address() {
164 return &thread_local_.external_caught_exception_; 164 return &thread_local_.external_caught_exception_;
165 } 165 }
166 166
167 static Object* scheduled_exception() { 167 static Object* scheduled_exception() {
168 ASSERT(has_scheduled_exception()); 168 ASSERT(has_scheduled_exception());
169 return thread_local_.scheduled_exception_; 169 return thread_local_.scheduled_exception_;
170 } 170 }
171 static bool has_scheduled_exception() { 171 static bool has_scheduled_exception() {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 class ExecutionAccess BASE_EMBEDDED { 406 class ExecutionAccess BASE_EMBEDDED {
407 public: 407 public:
408 ExecutionAccess(); 408 ExecutionAccess();
409 ~ExecutionAccess(); 409 ~ExecutionAccess();
410 }; 410 };
411 411
412 } } // namespace v8::internal 412 } } // namespace v8::internal
413 413
414 #endif // V8_TOP_H_ 414 #endif // V8_TOP_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698