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

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

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 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
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 18 matching lines...) Expand all
29 29
30 #include "incremental-marking.h" 30 #include "incremental-marking.h"
31 31
32 #include "code-stubs.h" 32 #include "code-stubs.h"
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 IncrementalMarking::State IncrementalMarking::state_ = STOPPED; 37 IncrementalMarking::State IncrementalMarking::state_ = STOPPED;
38 MarkingStack IncrementalMarking::marking_stack_; 38 MarkingStack IncrementalMarking::marking_stack_;
39 const char* IncrementalMarking::kWhiteBitPattern = "00";
40 const char* IncrementalMarking::kBlackBitPattern = "10";
41 const char* IncrementalMarking::kGreyBitPattern = "11";
42 const char* IncrementalMarking::kImpossibleBitPattern = "01";
39 43
40 double IncrementalMarking::steps_took_ = 0; 44 double IncrementalMarking::steps_took_ = 0;
41 int IncrementalMarking::steps_count_ = 0; 45 int IncrementalMarking::steps_count_ = 0;
42 bool IncrementalMarking::should_hurry_ = false; 46 bool IncrementalMarking::should_hurry_ = false;
43 intptr_t IncrementalMarking::allocation_marking_factor_ = 0; 47 intptr_t IncrementalMarking::allocation_marking_factor_ = 0;
44 48
45 static intptr_t allocated = 0; 49 static intptr_t allocated = 0;
46 50
47 class IncrementalMarkingMarkingVisitor : public ObjectVisitor { 51 class IncrementalMarkingMarkingVisitor : public ObjectVisitor {
48 public: 52 public:
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 379
376 if ((steps_count_ % kAllocationMarkingFactorSpeedupInterval) == 0) { 380 if ((steps_count_ % kAllocationMarkingFactorSpeedupInterval) == 0) {
377 allocation_marking_factor_ += kAllocationMarkingFactorSpeedup; 381 allocation_marking_factor_ += kAllocationMarkingFactorSpeedup;
378 } 382 }
379 } 383 }
380 } 384 }
381 } 385 }
382 386
383 387
384 } } // namespace v8::internal 388 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698