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

Side by Side Diff: src/top.h

Issue 43070: Fix exception propagation problem where undefined was returned instead... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 | « no previous file | 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 return thread_local_.scheduled_exception_; 151 return thread_local_.scheduled_exception_;
152 } 152 }
153 static bool has_scheduled_exception() { 153 static bool has_scheduled_exception() {
154 return !thread_local_.scheduled_exception_->IsTheHole(); 154 return !thread_local_.scheduled_exception_->IsTheHole();
155 } 155 }
156 static void clear_scheduled_exception() { 156 static void clear_scheduled_exception() {
157 thread_local_.scheduled_exception_ = Heap::the_hole_value(); 157 thread_local_.scheduled_exception_ = Heap::the_hole_value();
158 } 158 }
159 159
160 static void setup_external_caught() { 160 static void setup_external_caught() {
161 thread_local_.external_caught_exception_ = 161 if (!thread_local_.external_caught_exception_) {
Søren Thygesen Gjesse 2009/03/11 10:44:18 Is this if just to avoid recalculation, or is ther
Mads Ager (chromium) 2009/03/11 11:09:52 The external_caught_exception flag has to be stick
162 (!thread_local_.pending_exception_->IsTheHole()) && 162 thread_local_.external_caught_exception_ =
163 (thread_local_.catcher_ != NULL) && 163 has_pending_exception() &&
164 (Top::thread_local_.try_catch_handler_ == Top::thread_local_.catcher_); 164 (thread_local_.catcher_ != NULL) &&
165 (thread_local_.try_catch_handler_ == thread_local_.catcher_);
166 }
165 } 167 }
166 168
167 // Tells whether the current context has experienced an out of memory 169 // Tells whether the current context has experienced an out of memory
168 // exception. 170 // exception.
169 static bool is_out_of_memory(); 171 static bool is_out_of_memory();
170 172
171 // JS execution stack (see frames.h). 173 // JS execution stack (see frames.h).
172 static Address c_entry_fp(ThreadLocalTop* thread) { 174 static Address c_entry_fp(ThreadLocalTop* thread) {
173 return thread->c_entry_fp_; 175 return thread->c_entry_fp_;
174 } 176 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 371
370 class ExecutionAccess BASE_EMBEDDED { 372 class ExecutionAccess BASE_EMBEDDED {
371 public: 373 public:
372 ExecutionAccess(); 374 ExecutionAccess();
373 ~ExecutionAccess(); 375 ~ExecutionAccess();
374 }; 376 };
375 377
376 } } // namespace v8::internal 378 } } // namespace v8::internal
377 379
378 #endif // V8_TOP_H_ 380 #endif // V8_TOP_H_
OLDNEW
« no previous file with comments | « no previous file | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698