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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 TOP_ADDRESS_LIST(C) | 47 TOP_ADDRESS_LIST(C) |
48 TOP_ADDRESS_LIST_PROF(C) | 48 TOP_ADDRESS_LIST_PROF(C) |
49 #undef C | 49 #undef C |
50 NULL | 50 NULL |
51 }; | 51 }; |
52 | 52 |
53 Address Top::get_address_from_id(Top::AddressId id) { | 53 Address Top::get_address_from_id(Top::AddressId id) { |
54 return top_addresses[id]; | 54 return top_addresses[id]; |
55 } | 55 } |
56 | 56 |
| 57 |
57 char* Top::Iterate(ObjectVisitor* v, char* thread_storage) { | 58 char* Top::Iterate(ObjectVisitor* v, char* thread_storage) { |
58 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage); | 59 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage); |
59 Iterate(v, thread); | 60 Iterate(v, thread); |
60 return thread_storage + sizeof(ThreadLocalTop); | 61 return thread_storage + sizeof(ThreadLocalTop); |
61 } | 62 } |
62 | 63 |
63 | 64 |
64 void Top::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) { | 65 void Top::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) { |
65 v->VisitPointer(&(thread->pending_exception_)); | 66 v->VisitPointer(&(thread->pending_exception_)); |
66 v->VisitPointer(&(thread->pending_message_obj_)); | 67 v->VisitPointer(&(thread->pending_message_obj_)); |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 Top::break_access_->Lock(); | 975 Top::break_access_->Lock(); |
975 } | 976 } |
976 | 977 |
977 | 978 |
978 ExecutionAccess::~ExecutionAccess() { | 979 ExecutionAccess::~ExecutionAccess() { |
979 Top::break_access_->Unlock(); | 980 Top::break_access_->Unlock(); |
980 } | 981 } |
981 | 982 |
982 | 983 |
983 } } // namespace v8::internal | 984 } } // namespace v8::internal |
OLD | NEW |