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

Side by Side Diff: src/isolate.h

Issue 10540095: Reland r11753: Fix try..finally. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/ia32/full-codegen-ia32.cc ('k') | src/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 v8::TryCatch* catcher() { 571 v8::TryCatch* catcher() {
572 return thread_local_top_.catcher_; 572 return thread_local_top_.catcher_;
573 } 573 }
574 void set_catcher(v8::TryCatch* catcher) { 574 void set_catcher(v8::TryCatch* catcher) {
575 thread_local_top_.catcher_ = catcher; 575 thread_local_top_.catcher_ = catcher;
576 } 576 }
577 577
578 MaybeObject** scheduled_exception_address() { 578 MaybeObject** scheduled_exception_address() {
579 return &thread_local_top_.scheduled_exception_; 579 return &thread_local_top_.scheduled_exception_;
580 } 580 }
581
582 Address pending_message_obj_address() {
583 return reinterpret_cast<Address>(&thread_local_top_.pending_message_obj_);
584 }
585
586 Address has_pending_message_address() {
587 return reinterpret_cast<Address>(&thread_local_top_.has_pending_message_);
588 }
589
590 Address pending_message_script_address() {
591 return reinterpret_cast<Address>(
592 &thread_local_top_.pending_message_script_);
593 }
594
581 MaybeObject* scheduled_exception() { 595 MaybeObject* scheduled_exception() {
582 ASSERT(has_scheduled_exception()); 596 ASSERT(has_scheduled_exception());
583 return thread_local_top_.scheduled_exception_; 597 return thread_local_top_.scheduled_exception_;
584 } 598 }
585 bool has_scheduled_exception() { 599 bool has_scheduled_exception() {
586 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value(); 600 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value();
587 } 601 }
588 void clear_scheduled_exception() { 602 void clear_scheduled_exception() {
589 thread_local_top_.scheduled_exception_ = heap_.the_hole_value(); 603 thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
590 } 604 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 715
702 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 716 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
703 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); 717 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type);
704 718
705 // Exception throwing support. The caller should use the result 719 // Exception throwing support. The caller should use the result
706 // of Throw() as its return value. 720 // of Throw() as its return value.
707 Failure* Throw(Object* exception, MessageLocation* location = NULL); 721 Failure* Throw(Object* exception, MessageLocation* location = NULL);
708 // Re-throw an exception. This involves no error reporting since 722 // Re-throw an exception. This involves no error reporting since
709 // error reporting was handled when the exception was thrown 723 // error reporting was handled when the exception was thrown
710 // originally. 724 // originally.
711 Failure* ReThrow(MaybeObject* exception, MessageLocation* location = NULL); 725 Failure* ReThrow(MaybeObject* exception);
712 void ScheduleThrow(Object* exception); 726 void ScheduleThrow(Object* exception);
713 void ReportPendingMessages(); 727 void ReportPendingMessages();
714 Failure* ThrowIllegalOperation(); 728 Failure* ThrowIllegalOperation();
715 729
716 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 730 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
717 Failure* PromoteScheduledException(); 731 Failure* PromoteScheduledException();
718 void DoThrow(Object* exception, MessageLocation* location); 732 void DoThrow(Object* exception, MessageLocation* location);
719 // Checks if exception should be reported and finds out if it's 733 // Checks if exception should be reported and finds out if it's
720 // caught externally. 734 // caught externally.
721 bool ShouldReportException(bool* can_be_caught_externally, 735 bool ShouldReportException(bool* can_be_caught_externally,
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 1419
1406 // Mark the global context with out of memory. 1420 // Mark the global context with out of memory.
1407 inline void Context::mark_out_of_memory() { 1421 inline void Context::mark_out_of_memory() {
1408 global_context()->set_out_of_memory(HEAP->true_value()); 1422 global_context()->set_out_of_memory(HEAP->true_value());
1409 } 1423 }
1410 1424
1411 1425
1412 } } // namespace v8::internal 1426 } } // namespace v8::internal
1413 1427
1414 #endif // V8_ISOLATE_H_ 1428 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698