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

Side by Side Diff: src/isolate.h

Issue 7003108: "Deiceolate" Thread classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 } 588 }
589 589
590 MaybeObject** scheduled_exception_address() { 590 MaybeObject** scheduled_exception_address() {
591 return &thread_local_top_.scheduled_exception_; 591 return &thread_local_top_.scheduled_exception_;
592 } 592 }
593 MaybeObject* scheduled_exception() { 593 MaybeObject* scheduled_exception() {
594 ASSERT(has_scheduled_exception()); 594 ASSERT(has_scheduled_exception());
595 return thread_local_top_.scheduled_exception_; 595 return thread_local_top_.scheduled_exception_;
596 } 596 }
597 bool has_scheduled_exception() { 597 bool has_scheduled_exception() {
598 return !thread_local_top_.scheduled_exception_->IsTheHole(); 598 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value();
599 } 599 }
600 void clear_scheduled_exception() { 600 void clear_scheduled_exception() {
601 thread_local_top_.scheduled_exception_ = heap_.the_hole_value(); 601 thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
602 } 602 }
603 603
604 bool IsExternallyCaught(); 604 bool IsExternallyCaught();
605 605
606 bool is_catchable_by_javascript(MaybeObject* exception) { 606 bool is_catchable_by_javascript(MaybeObject* exception) {
607 return (exception != Failure::OutOfMemoryException()) && 607 return (exception != Failure::OutOfMemoryException()) &&
608 (exception != heap()->termination_exception()); 608 (exception != heap()->termination_exception());
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 1365
1366 } } // namespace v8::internal 1366 } } // namespace v8::internal
1367 1367
1368 // TODO(isolates): Get rid of these -inl.h includes and place them only where 1368 // TODO(isolates): Get rid of these -inl.h includes and place them only where
1369 // they're needed. 1369 // they're needed.
1370 #include "allocation-inl.h" 1370 #include "allocation-inl.h"
1371 #include "zone-inl.h" 1371 #include "zone-inl.h"
1372 #include "frames-inl.h" 1372 #include "frames-inl.h"
1373 1373
1374 #endif // V8_ISOLATE_H_ 1374 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698