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

Side by Side Diff: src/isolate.h

Issue 6820003: Allow recursive messages reporting as it is already used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing Yuri's concerns Created 9 years, 8 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/messages.cc » ('j') | src/messages.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool has_pending_message_; 181 bool has_pending_message_;
182 Object* pending_message_obj_; 182 Object* pending_message_obj_;
183 Script* pending_message_script_; 183 Script* pending_message_script_;
184 int pending_message_start_pos_; 184 int pending_message_start_pos_;
185 int pending_message_end_pos_; 185 int pending_message_end_pos_;
186 // Use a separate value for scheduled exceptions to preserve the 186 // Use a separate value for scheduled exceptions to preserve the
187 // invariants that hold about pending_exception. We may want to 187 // invariants that hold about pending_exception. We may want to
188 // unify them later. 188 // unify them later.
189 MaybeObject* scheduled_exception_; 189 MaybeObject* scheduled_exception_;
190 bool external_caught_exception_; 190 bool external_caught_exception_;
191 // True if unhandled message is being currently reported by
192 // MessageHandler::ReportMessage.
193 bool in_exception_reporting_;
194 SaveContext* save_context_; 191 SaveContext* save_context_;
195 v8::TryCatch* catcher_; 192 v8::TryCatch* catcher_;
196 193
197 // Stack. 194 // Stack.
198 Address c_entry_fp_; // the frame pointer of the top c entry frame 195 Address c_entry_fp_; // the frame pointer of the top c entry frame
199 Address handler_; // try-blocks are chained through the stack 196 Address handler_; // try-blocks are chained through the stack
200 197
201 #ifdef USE_SIMULATOR 198 #ifdef USE_SIMULATOR
202 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) 199 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS)
203 Simulator* simulator_; 200 Simulator* simulator_;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 516 }
520 v8::TryCatch* try_catch_handler() { 517 v8::TryCatch* try_catch_handler() {
521 return thread_local_top_.TryCatchHandler(); 518 return thread_local_top_.TryCatchHandler();
522 } 519 }
523 Address try_catch_handler_address() { 520 Address try_catch_handler_address() {
524 return thread_local_top_.try_catch_handler_address(); 521 return thread_local_top_.try_catch_handler_address();
525 } 522 }
526 bool* external_caught_exception_address() { 523 bool* external_caught_exception_address() {
527 return &thread_local_top_.external_caught_exception_; 524 return &thread_local_top_.external_caught_exception_;
528 } 525 }
529 bool in_exception_reporting() {
530 return thread_local_top_.in_exception_reporting_;
531 }
532 void set_in_exception_reporting(bool value) {
533 thread_local_top_.in_exception_reporting_ = value;
534 }
535 v8::TryCatch* catcher() { 526 v8::TryCatch* catcher() {
536 return thread_local_top_.catcher_; 527 return thread_local_top_.catcher_;
537 } 528 }
538 void set_catcher(v8::TryCatch* catcher) { 529 void set_catcher(v8::TryCatch* catcher) {
539 thread_local_top_.catcher_ = catcher; 530 thread_local_top_.catcher_ = catcher;
540 } 531 }
541 532
542 MaybeObject** scheduled_exception_address() { 533 MaybeObject** scheduled_exception_address() {
543 return &thread_local_top_.scheduled_exception_; 534 return &thread_local_top_.scheduled_exception_;
544 } 535 }
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1331
1341 } } // namespace v8::internal 1332 } } // namespace v8::internal
1342 1333
1343 // TODO(isolates): Get rid of these -inl.h includes and place them only where 1334 // TODO(isolates): Get rid of these -inl.h includes and place them only where
1344 // they're needed. 1335 // they're needed.
1345 #include "allocation-inl.h" 1336 #include "allocation-inl.h"
1346 #include "zone-inl.h" 1337 #include "zone-inl.h"
1347 #include "frames-inl.h" 1338 #include "frames-inl.h"
1348 1339
1349 #endif // V8_ISOLATE_H_ 1340 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/messages.cc » ('j') | src/messages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698