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

Side by Side Diff: src/heap-inl.h

Issue 149324: * Move almost all roots into an array ready for use by a constant-pool... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 *p = first_word.ToForwardingAddress(); 209 *p = first_word.ToForwardingAddress();
210 return; 210 return;
211 } 211 }
212 212
213 // Call the slow part of scavenge object. 213 // Call the slow part of scavenge object.
214 return ScavengeObjectSlow(p, object); 214 return ScavengeObjectSlow(p, object);
215 } 215 }
216 216
217 217
218 void Heap::SetLastScriptId(Object* last_script_id) { 218 void Heap::SetLastScriptId(Object* last_script_id) {
219 last_script_id_ = last_script_id; 219 roots_[kLastScriptIdRootIndex] = last_script_id;
220 } 220 }
221 221
222 222
223 #define GC_GREEDY_CHECK() \ 223 #define GC_GREEDY_CHECK() \
224 ASSERT(!FLAG_gc_greedy || v8::internal::Heap::GarbageCollectionGreedyCheck()) 224 ASSERT(!FLAG_gc_greedy || v8::internal::Heap::GarbageCollectionGreedyCheck())
225 225
226 226
227 // Calls the FUNCTION_CALL function and retries it up to three times 227 // Calls the FUNCTION_CALL function and retries it up to three times
228 // to guarantee that any allocations performed during the call will 228 // to guarantee that any allocations performed during the call will
229 // succeed if there's enough memory. 229 // succeed if there's enough memory.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 allocation_allowed_ = new_state; 281 allocation_allowed_ = new_state;
282 return old; 282 return old;
283 } 283 }
284 284
285 #endif 285 #endif
286 286
287 287
288 } } // namespace v8::internal 288 } } // namespace v8::internal
289 289
290 #endif // V8_HEAP_INL_H_ 290 #endif // V8_HEAP_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698