OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_TOP_H_ | 28 #ifndef V8_TOP_H_ |
29 #define V8_TOP_H_ | 29 #define V8_TOP_H_ |
30 | 30 |
31 #include "atomicops.h" | 31 #include "atomicops.h" |
32 #include "compilation-cache.h" | 32 #include "compilation-cache.h" |
33 #include "frames-inl.h" | 33 #include "frames-inl.h" |
34 #include "runtime-profiler.h" | 34 #include "runtime-profiler.h" |
35 #include "simulator.h" | |
36 | 35 |
37 namespace v8 { | 36 namespace v8 { |
38 namespace internal { | 37 namespace internal { |
39 | 38 |
| 39 class Simulator; |
40 | 40 |
41 #define RETURN_IF_SCHEDULED_EXCEPTION() \ | 41 #define RETURN_IF_SCHEDULED_EXCEPTION() \ |
42 if (Top::has_scheduled_exception()) return Top::PromoteScheduledException() | 42 if (Top::has_scheduled_exception()) return Top::PromoteScheduledException() |
43 | 43 |
44 // Top has static variables used for JavaScript execution. | 44 // Top has static variables used for JavaScript execution. |
45 | 45 |
46 class SaveContext; // Forward declaration. | 46 class SaveContext; // Forward declaration. |
47 class ThreadVisitor; // Defined in v8threads.h | 47 class ThreadVisitor; // Defined in v8threads.h |
48 class VMState; // Defined in vm-state.h | 48 class VMState; // Defined in vm-state.h |
49 | 49 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 static void Unlock() { Top::break_access_->Unlock(); } | 590 static void Unlock() { Top::break_access_->Unlock(); } |
591 | 591 |
592 static bool TryLock() { | 592 static bool TryLock() { |
593 return Top::break_access_->TryLock(); | 593 return Top::break_access_->TryLock(); |
594 } | 594 } |
595 }; | 595 }; |
596 | 596 |
597 } } // namespace v8::internal | 597 } } // namespace v8::internal |
598 | 598 |
599 #endif // V8_TOP_H_ | 599 #endif // V8_TOP_H_ |
OLD | NEW |