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

Side by Side Diff: src/snapshot-common.cc

Issue 6685088: Merge isolates to bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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/snapshot.h ('k') | src/spaces.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return true; 57 return true;
58 } 58 }
59 return false; 59 return false;
60 } 60 }
61 61
62 62
63 Handle<Context> Snapshot::NewContextFromSnapshot() { 63 Handle<Context> Snapshot::NewContextFromSnapshot() {
64 if (context_size_ == 0) { 64 if (context_size_ == 0) {
65 return Handle<Context>(); 65 return Handle<Context>();
66 } 66 }
67 Heap::ReserveSpace(new_space_used_, 67 HEAP->ReserveSpace(new_space_used_,
68 pointer_space_used_, 68 pointer_space_used_,
69 data_space_used_, 69 data_space_used_,
70 code_space_used_, 70 code_space_used_,
71 map_space_used_, 71 map_space_used_,
72 cell_space_used_, 72 cell_space_used_,
73 large_space_used_); 73 large_space_used_);
74 SnapshotByteSource source(context_data_, context_size_); 74 SnapshotByteSource source(context_data_, context_size_);
75 Deserializer deserializer(&source); 75 Deserializer deserializer(&source);
76 Object* root; 76 Object* root;
77 deserializer.DeserializePartial(&root); 77 deserializer.DeserializePartial(&root);
78 CHECK(root->IsContext()); 78 CHECK(root->IsContext());
79 return Handle<Context>(Context::cast(root)); 79 return Handle<Context>(Context::cast(root));
80 } 80 }
81 81
82 } } // namespace v8::internal 82 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/snapshot.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698