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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 #include "api.h" | 30 #include "api.h" |
31 #include "bootstrapper.h" | 31 #include "bootstrapper.h" |
32 #include "debug.h" | 32 #include "debug.h" |
33 #include "execution.h" | 33 #include "execution.h" |
34 #include "string-stream.h" | 34 #include "string-stream.h" |
35 #include "platform.h" | 35 #include "platform.h" |
36 | 36 |
37 namespace v8 { namespace internal { | 37 namespace v8 { |
| 38 namespace internal { |
38 | 39 |
39 ThreadLocalTop Top::thread_local_; | 40 ThreadLocalTop Top::thread_local_; |
40 Mutex* Top::break_access_ = OS::CreateMutex(); | 41 Mutex* Top::break_access_ = OS::CreateMutex(); |
41 | 42 |
42 NoAllocationStringAllocator* preallocated_message_space = NULL; | 43 NoAllocationStringAllocator* preallocated_message_space = NULL; |
43 | 44 |
44 Address top_addresses[] = { | 45 Address top_addresses[] = { |
45 #define C(name) reinterpret_cast<Address>(Top::name()), | 46 #define C(name) reinterpret_cast<Address>(Top::name()), |
46 TOP_ADDRESS_LIST(C) | 47 TOP_ADDRESS_LIST(C) |
47 #undef C | 48 #undef C |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 Top::break_access_->Lock(); | 924 Top::break_access_->Lock(); |
924 } | 925 } |
925 | 926 |
926 | 927 |
927 ExecutionAccess::~ExecutionAccess() { | 928 ExecutionAccess::~ExecutionAccess() { |
928 Top::break_access_->Unlock(); | 929 Top::break_access_->Unlock(); |
929 } | 930 } |
930 | 931 |
931 | 932 |
932 } } // namespace v8::internal | 933 } } // namespace v8::internal |
OLD | NEW |