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

Side by Side Diff: src/serialize.h

Issue 653353003: Fix compilation after r24639 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | test/cctest/test-serialize.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SERIALIZE_H_ 5 #ifndef V8_SERIALIZE_H_
6 #define V8_SERIALIZE_H_ 6 #define V8_SERIALIZE_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/hashmap.h" 9 #include "src/hashmap.h"
10 #include "src/heap-profiler.h" 10 #include "src/heap-profiler.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 enum OnOOM { FATAL_ON_OOM, NULL_ON_OOM }; 256 enum OnOOM { FATAL_ON_OOM, NULL_ON_OOM };
257 257
258 // Deserialize a single object and the objects reachable from it. 258 // Deserialize a single object and the objects reachable from it.
259 // We may want to abort gracefully even if deserialization fails. 259 // We may want to abort gracefully even if deserialization fails.
260 void DeserializePartial(Isolate* isolate, Object** root, 260 void DeserializePartial(Isolate* isolate, Object** root,
261 OnOOM on_oom = FATAL_ON_OOM); 261 OnOOM on_oom = FATAL_ON_OOM);
262 262
263 void AddReservation(int space, uint32_t chunk) { 263 void AddReservation(int space, uint32_t chunk) {
264 DCHECK(space >= 0); 264 DCHECK(space >= 0);
265 DCHECK(space < kNumberOfSpaces); 265 DCHECK(space < kNumberOfSpaces);
266 DCHECK(space == LO_SPACE || chunk < Page::kMaxRegularHeapObjectSize); 266 DCHECK(space == LO_SPACE ||
267 chunk < static_cast<uint32_t>(Page::kMaxRegularHeapObjectSize));
267 reservations_[space].Add({chunk, NULL, NULL}); 268 reservations_[space].Add({chunk, NULL, NULL});
268 } 269 }
269 270
270 void FlushICacheForNewCodeObjects(); 271 void FlushICacheForNewCodeObjects();
271 272
272 // Serialized user code reference certain objects that are provided in a list 273 // Serialized user code reference certain objects that are provided in a list
273 // By calling this method, we assume that we are deserializing user code. 274 // By calling this method, we assume that we are deserializing user code.
274 void SetAttachedObjects(Vector<Handle<Object> >* attached_objects) { 275 void SetAttachedObjects(Vector<Handle<Object> >* attached_objects) {
275 attached_objects_ = attached_objects; 276 attached_objects_ = attached_objects;
276 } 277 }
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 // Following the header, we store, in sequential order 750 // Following the header, we store, in sequential order
750 // - code stub keys 751 // - code stub keys
751 // - serialization payload 752 // - serialization payload
752 753
753 ScriptData* script_data_; 754 ScriptData* script_data_;
754 bool owns_script_data_; 755 bool owns_script_data_;
755 }; 756 };
756 } } // namespace v8::internal 757 } } // namespace v8::internal
757 758
758 #endif // V8_SERIALIZE_H_ 759 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698