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

Side by Side Diff: src/spaces.cc

Issue 11227034: Add a type conversion to fix Windows build after r12793 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 chunk->heap_ = heap; 441 chunk->heap_ = heap;
442 chunk->size_ = size; 442 chunk->size_ = size;
443 chunk->area_start_ = area_start; 443 chunk->area_start_ = area_start;
444 chunk->area_end_ = area_end; 444 chunk->area_end_ = area_end;
445 chunk->flags_ = 0; 445 chunk->flags_ = 0;
446 chunk->set_owner(owner); 446 chunk->set_owner(owner);
447 chunk->InitializeReservedMemory(); 447 chunk->InitializeReservedMemory();
448 chunk->slots_buffer_ = NULL; 448 chunk->slots_buffer_ = NULL;
449 chunk->skip_list_ = NULL; 449 chunk->skip_list_ = NULL;
450 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; 450 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity;
451 chunk->high_water_mark_ = area_start - base; 451 chunk->high_water_mark_ = static_cast<int>(area_start - base);
452 chunk->ResetLiveBytes(); 452 chunk->ResetLiveBytes();
453 Bitmap::Clear(chunk); 453 Bitmap::Clear(chunk);
454 chunk->initialize_scan_on_scavenge(false); 454 chunk->initialize_scan_on_scavenge(false);
455 chunk->SetFlag(WAS_SWEPT_PRECISELY); 455 chunk->SetFlag(WAS_SWEPT_PRECISELY);
456 456
457 ASSERT(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset); 457 ASSERT(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset);
458 ASSERT(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset); 458 ASSERT(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset);
459 459
460 if (executable == EXECUTABLE) { 460 if (executable == EXECUTABLE) {
461 chunk->SetFlag(IS_EXECUTABLE); 461 chunk->SetFlag(IS_EXECUTABLE);
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 object->ShortPrint(); 2945 object->ShortPrint();
2946 PrintF("\n"); 2946 PrintF("\n");
2947 } 2947 }
2948 printf(" --------------------------------------\n"); 2948 printf(" --------------------------------------\n");
2949 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 2949 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
2950 } 2950 }
2951 2951
2952 #endif // DEBUG 2952 #endif // DEBUG
2953 2953
2954 } } // namespace v8::internal 2954 } } // 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