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

Side by Side Diff: src/heap.cc

Issue 238773002: Reland "Track field types.". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Properly handlified... Created 6 years, 8 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/flag-definitions.h ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5387 matching lines...) Expand 10 before | Expand all | Expand 10 after
5398 return lo_space_->SlowContains(addr); 5398 return lo_space_->SlowContains(addr);
5399 } 5399 }
5400 5400
5401 return false; 5401 return false;
5402 } 5402 }
5403 5403
5404 5404
5405 #ifdef VERIFY_HEAP 5405 #ifdef VERIFY_HEAP
5406 void Heap::Verify() { 5406 void Heap::Verify() {
5407 CHECK(HasBeenSetUp()); 5407 CHECK(HasBeenSetUp());
5408 HandleScope scope(isolate());
5408 5409
5409 store_buffer()->Verify(); 5410 store_buffer()->Verify();
5410 5411
5411 VerifyPointersVisitor visitor; 5412 VerifyPointersVisitor visitor;
5412 IterateRoots(&visitor, VISIT_ONLY_STRONG); 5413 IterateRoots(&visitor, VISIT_ONLY_STRONG);
5413 5414
5414 VerifySmisVisitor smis_visitor; 5415 VerifySmisVisitor smis_visitor;
5415 IterateSmiRoots(&smis_visitor); 5416 IterateSmiRoots(&smis_visitor);
5416 5417
5417 new_space_.Verify(); 5418 new_space_.Verify();
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
7290 static_cast<int>(object_sizes_last_time_[index])); 7291 static_cast<int>(object_sizes_last_time_[index]));
7291 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7292 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7292 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7293 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7293 7294
7294 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7295 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7295 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7296 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7296 ClearObjectStats(); 7297 ClearObjectStats();
7297 } 7298 }
7298 7299
7299 } } // namespace v8::internal 7300 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698