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

Side by Side Diff: src/top.cc

Issue 888005: Fix issues with compiling V8 with LLVM Clang... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « src/objects.h ('k') | src/utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage); 85 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage);
86 Iterate(v, thread); 86 Iterate(v, thread);
87 return thread_storage + sizeof(ThreadLocalTop); 87 return thread_storage + sizeof(ThreadLocalTop);
88 } 88 }
89 89
90 90
91 void Top::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) { 91 void Top::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) {
92 v->VisitPointer(&(thread->pending_exception_)); 92 v->VisitPointer(&(thread->pending_exception_));
93 v->VisitPointer(&(thread->pending_message_obj_)); 93 v->VisitPointer(&(thread->pending_message_obj_));
94 v->VisitPointer( 94 v->VisitPointer(
95 bit_cast<Object**, Script**>(&(thread->pending_message_script_))); 95 BitCast<Object**, Script**>(&(thread->pending_message_script_)));
96 v->VisitPointer(bit_cast<Object**, Context**>(&(thread->context_))); 96 v->VisitPointer(BitCast<Object**, Context**>(&(thread->context_)));
97 v->VisitPointer(&(thread->scheduled_exception_)); 97 v->VisitPointer(&(thread->scheduled_exception_));
98 98
99 for (v8::TryCatch* block = thread->TryCatchHandler(); 99 for (v8::TryCatch* block = thread->TryCatchHandler();
100 block != NULL; 100 block != NULL;
101 block = TRY_CATCH_FROM_ADDRESS(block->next_)) { 101 block = TRY_CATCH_FROM_ADDRESS(block->next_)) {
102 v->VisitPointer(bit_cast<Object**, void**>(&(block->exception_))); 102 v->VisitPointer(BitCast<Object**, void**>(&(block->exception_)));
103 v->VisitPointer(bit_cast<Object**, void**>(&(block->message_))); 103 v->VisitPointer(BitCast<Object**, void**>(&(block->message_)));
104 } 104 }
105 105
106 // Iterate over pointers on native execution stack. 106 // Iterate over pointers on native execution stack.
107 for (StackFrameIterator it(thread); !it.done(); it.Advance()) { 107 for (StackFrameIterator it(thread); !it.done(); it.Advance()) {
108 it.frame()->Iterate(v); 108 it.frame()->Iterate(v);
109 } 109 }
110 } 110 }
111 111
112 112
113 void Top::Iterate(ObjectVisitor* v) { 113 void Top::Iterate(ObjectVisitor* v) {
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 Top::break_access_->Lock(); 966 Top::break_access_->Lock();
967 } 967 }
968 968
969 969
970 ExecutionAccess::~ExecutionAccess() { 970 ExecutionAccess::~ExecutionAccess() {
971 Top::break_access_->Unlock(); 971 Top::break_access_->Unlock();
972 } 972 }
973 973
974 974
975 } } // namespace v8::internal 975 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698