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

Side by Side Diff: src/mark-compact.cc

Issue 7969013: Fix pc to code cache so it can cope with a pointer to the start of the code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 #ifdef DEBUG 274 #ifdef DEBUG
275 if (FLAG_verify_heap) { 275 if (FLAG_verify_heap) {
276 VerifyMarking(heap_); 276 VerifyMarking(heap_);
277 } 277 }
278 #endif 278 #endif
279 279
280 SweepSpaces(); 280 SweepSpaces();
281 281
282 if (!collect_maps_) ReattachInitialMaps(); 282 if (!collect_maps_) ReattachInitialMaps();
283 283
284 heap_->isolate()->pc_to_code_cache()->Flush(); 284 heap_->isolate()->inner_pointer_to_code_cache()->Flush();
285 285
286 Finish(); 286 Finish();
287 287
288 tracer_ = NULL; 288 tracer_ = NULL;
289 } 289 }
290 290
291 291
292 #ifdef DEBUG 292 #ifdef DEBUG
293 void MarkCompactCollector::VerifyMarkbitsAreClean(PagedSpace* space) { 293 void MarkCompactCollector::VerifyMarkbitsAreClean(PagedSpace* space) {
294 PageIterator it(space); 294 PageIterator it(space);
(...skipping 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after
3617 while (buffer != NULL) { 3617 while (buffer != NULL) {
3618 SlotsBuffer* next_buffer = buffer->next(); 3618 SlotsBuffer* next_buffer = buffer->next();
3619 DeallocateBuffer(buffer); 3619 DeallocateBuffer(buffer);
3620 buffer = next_buffer; 3620 buffer = next_buffer;
3621 } 3621 }
3622 *buffer_address = NULL; 3622 *buffer_address = NULL;
3623 } 3623 }
3624 3624
3625 3625
3626 } } // namespace v8::internal 3626 } } // namespace v8::internal
OLDNEW
« src/frames-inl.h ('K') | « src/isolate.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698