| 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" | 35 |
| 36 #ifdef USE_SIMULATOR |
| 37 #ifdef V8_TARGET_ARCH_ARM |
| 38 namespace assembler { |
| 39 namespace arm { |
| 40 class Simulator; |
| 41 } |
| 42 } |
| 43 #elif V8_TARGET_ARCH_MIPS |
| 44 namespace assembler { |
| 45 namespace mips { |
| 46 class Simulator; |
| 47 } |
| 48 } |
| 49 #endif |
| 50 #endif // USE_SIMULATOR |
| 36 | 51 |
| 37 namespace v8 { | 52 namespace v8 { |
| 38 namespace internal { | 53 namespace internal { |
| 39 | 54 |
| 40 | |
| 41 #define RETURN_IF_SCHEDULED_EXCEPTION() \ | 55 #define RETURN_IF_SCHEDULED_EXCEPTION() \ |
| 42 if (Top::has_scheduled_exception()) return Top::PromoteScheduledException() | 56 if (Top::has_scheduled_exception()) return Top::PromoteScheduledException() |
| 43 | 57 |
| 44 // Top has static variables used for JavaScript execution. | 58 // Top has static variables used for JavaScript execution. |
| 45 | 59 |
| 46 class SaveContext; // Forward declaration. | 60 class SaveContext; // Forward declaration. |
| 47 class ThreadVisitor; // Defined in v8threads.h | 61 class ThreadVisitor; // Defined in v8threads.h |
| 48 class VMState; // Defined in vm-state.h | 62 class VMState; // Defined in vm-state.h |
| 49 | 63 |
| 50 class ThreadLocalTop BASE_EMBEDDED { | 64 class ThreadLocalTop BASE_EMBEDDED { |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 static void Unlock() { Top::break_access_->Unlock(); } | 602 static void Unlock() { Top::break_access_->Unlock(); } |
| 589 | 603 |
| 590 static bool TryLock() { | 604 static bool TryLock() { |
| 591 return Top::break_access_->TryLock(); | 605 return Top::break_access_->TryLock(); |
| 592 } | 606 } |
| 593 }; | 607 }; |
| 594 | 608 |
| 595 } } // namespace v8::internal | 609 } } // namespace v8::internal |
| 596 | 610 |
| 597 #endif // V8_TOP_H_ | 611 #endif // V8_TOP_H_ |
| OLD | NEW |