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

Side by Side Diff: src/serialize.cc

Issue 8354037: Fix the build on Mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 isolate->set_serialize_partial_snapshot_cache_length( 1151 isolate->set_serialize_partial_snapshot_cache_length(
1152 Isolate::kPartialSnapshotCacheCapacity); 1152 Isolate::kPartialSnapshotCacheCapacity);
1153 } 1153 }
1154 1154
1155 1155
1156 void Serializer::VisitPointers(Object** start, Object** end) { 1156 void Serializer::VisitPointers(Object** start, Object** end) {
1157 Isolate* isolate = Isolate::Current(); 1157 Isolate* isolate = Isolate::Current();
1158 1158
1159 for (Object** current = start; current < end; current++) { 1159 for (Object** current = start; current < end; current++) {
1160 if (start == isolate->heap()->roots_array_start()) { 1160 if (start == isolate->heap()->roots_array_start()) {
1161 root_index_wave_front_ = Max(root_index_wave_front_, current - start); 1161 root_index_wave_front_ =
1162 Max(root_index_wave_front_, static_cast<intptr_t>(current - start));
1162 } 1163 }
1163 if (reinterpret_cast<Address>(current) == 1164 if (reinterpret_cast<Address>(current) ==
1164 isolate->heap()->store_buffer()->TopAddress()) { 1165 isolate->heap()->store_buffer()->TopAddress()) {
1165 sink_->Put(kSkip, "Skip"); 1166 sink_->Put(kSkip, "Skip");
1166 } else if ((*current)->IsSmi()) { 1167 } else if ((*current)->IsSmi()) {
1167 sink_->Put(kRawData, "RawData"); 1168 sink_->Put(kRawData, "RawData");
1168 sink_->PutInt(kPointerSize, "length"); 1169 sink_->PutInt(kPointerSize, "length");
1169 for (int i = 0; i < kPointerSize; i++) { 1170 for (int i = 0; i < kPointerSize; i++) {
1170 sink_->Put(reinterpret_cast<byte*>(current)[i], "Byte"); 1171 sink_->Put(reinterpret_cast<byte*>(current)[i], "Byte");
1171 } 1172 }
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1626 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1626 } 1627 }
1627 } 1628 }
1628 int allocation_address = fullness_[space]; 1629 int allocation_address = fullness_[space];
1629 fullness_[space] = allocation_address + size; 1630 fullness_[space] = allocation_address + size;
1630 return allocation_address; 1631 return allocation_address;
1631 } 1632 }
1632 1633
1633 1634
1634 } } // namespace v8::internal 1635 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698