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

Side by Side Diff: src/isolate.h

Issue 10546092: Revert r11753. (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
595 MaybeObject* scheduled_exception() { 581 MaybeObject* scheduled_exception() {
596 ASSERT(has_scheduled_exception()); 582 ASSERT(has_scheduled_exception());
597 return thread_local_top_.scheduled_exception_; 583 return thread_local_top_.scheduled_exception_;
598 } 584 }
599 bool has_scheduled_exception() { 585 bool has_scheduled_exception() {
600 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value(); 586 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value();
601 } 587 }
602 void clear_scheduled_exception() { 588 void clear_scheduled_exception() {
603 thread_local_top_.scheduled_exception_ = heap_.the_hole_value(); 589 thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
604 } 590 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 701
716 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 702 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
717 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); 703 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type);
718 704
719 // Exception throwing support. The caller should use the result 705 // Exception throwing support. The caller should use the result
720 // of Throw() as its return value. 706 // of Throw() as its return value.
721 Failure* Throw(Object* exception, MessageLocation* location = NULL); 707 Failure* Throw(Object* exception, MessageLocation* location = NULL);
722 // Re-throw an exception. This involves no error reporting since 708 // Re-throw an exception. This involves no error reporting since
723 // error reporting was handled when the exception was thrown 709 // error reporting was handled when the exception was thrown
724 // originally. 710 // originally.
725 Failure* ReThrow(MaybeObject* exception); 711 Failure* ReThrow(MaybeObject* exception, MessageLocation* location = NULL);
726 void ScheduleThrow(Object* exception); 712 void ScheduleThrow(Object* exception);
727 void ReportPendingMessages(); 713 void ReportPendingMessages();
728 Failure* ThrowIllegalOperation(); 714 Failure* ThrowIllegalOperation();
729 715
730 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 716 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
731 Failure* PromoteScheduledException(); 717 Failure* PromoteScheduledException();
732 void DoThrow(Object* exception, MessageLocation* location); 718 void DoThrow(Object* exception, MessageLocation* location);
733 // Checks if exception should be reported and finds out if it's 719 // Checks if exception should be reported and finds out if it's
734 // caught externally. 720 // caught externally.
735 bool ShouldReportException(bool* can_be_caught_externally, 721 bool ShouldReportException(bool* can_be_caught_externally,
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 1406
1421 // Mark the global context with out of memory. 1407 // Mark the global context with out of memory.
1422 inline void Context::mark_out_of_memory() { 1408 inline void Context::mark_out_of_memory() {
1423 global_context()->set_out_of_memory(HEAP->true_value()); 1409 global_context()->set_out_of_memory(HEAP->true_value());
1424 } 1410 }
1425 1411
1426 1412
1427 } } // namespace v8::internal 1413 } } // namespace v8::internal
1428 1414
1429 #endif // V8_ISOLATE_H_ 1415 #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