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

Side by Side Diff: src/incremental-marking.cc

Issue 18509003: Keep two empty lines between declarations for cpp files (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
« no previous file with comments | « src/ia32/regexp-macro-assembler-ia32.cc ('k') | src/isolate.cc » ('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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 if (!marking_deque_memory_committed_) { 556 if (!marking_deque_memory_committed_) {
557 bool success = marking_deque_memory_->Commit( 557 bool success = marking_deque_memory_->Commit(
558 reinterpret_cast<Address>(marking_deque_memory_->address()), 558 reinterpret_cast<Address>(marking_deque_memory_->address()),
559 marking_deque_memory_->size(), 559 marking_deque_memory_->size(),
560 false); // Not executable. 560 false); // Not executable.
561 CHECK(success); 561 CHECK(success);
562 marking_deque_memory_committed_ = true; 562 marking_deque_memory_committed_ = true;
563 } 563 }
564 } 564 }
565 565
566
566 void IncrementalMarking::UncommitMarkingDeque() { 567 void IncrementalMarking::UncommitMarkingDeque() {
567 if (state_ == STOPPED && marking_deque_memory_committed_) { 568 if (state_ == STOPPED && marking_deque_memory_committed_) {
568 bool success = marking_deque_memory_->Uncommit( 569 bool success = marking_deque_memory_->Uncommit(
569 reinterpret_cast<Address>(marking_deque_memory_->address()), 570 reinterpret_cast<Address>(marking_deque_memory_->address()),
570 marking_deque_memory_->size()); 571 marking_deque_memory_->size());
571 CHECK(success); 572 CHECK(success);
572 marking_deque_memory_committed_ = false; 573 marking_deque_memory_committed_ = false;
573 } 574 }
574 } 575 }
575 576
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 bytes_scanned_ = 0; 1032 bytes_scanned_ = 0;
1032 write_barriers_invoked_since_last_step_ = 0; 1033 write_barriers_invoked_since_last_step_ = 0;
1033 } 1034 }
1034 1035
1035 1036
1036 int64_t IncrementalMarking::SpaceLeftInOldSpace() { 1037 int64_t IncrementalMarking::SpaceLeftInOldSpace() {
1037 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); 1038 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects();
1038 } 1039 }
1039 1040
1040 } } // namespace v8::internal 1041 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/regexp-macro-assembler-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698