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

Side by Side Diff: src/top.cc

Issue 196139: X64: Convert smis to holding 32 bits of payload. (Closed)
Patch Set: Addressed review comments. Forwarded to head. Created 11 years, 2 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
« no previous file with comments | « src/serialize.cc ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698