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

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

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master Created 4 years, 6 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
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | src/heap/mark-compact-inl.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/mark-compact.h" 5 #include "src/heap/mark-compact.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/base/sys-info.h" 9 #include "src/base/sys-info.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 break; 1067 break;
1068 } 1068 }
1069 1069
1070 candidate = next_candidate; 1070 candidate = next_candidate;
1071 } 1071 }
1072 } 1072 }
1073 } 1073 }
1074 1074
1075 1075
1076 void CodeFlusher::EvictCandidate(JSFunction* function) { 1076 void CodeFlusher::EvictCandidate(JSFunction* function) {
1077 DCHECK(!function->next_function_link()->IsUndefined()); 1077 DCHECK(!function->next_function_link()->IsUndefined(isolate_));
1078 Object* undefined = isolate_->heap()->undefined_value(); 1078 Object* undefined = isolate_->heap()->undefined_value();
1079 1079
1080 // Make sure previous flushing decisions are revisited. 1080 // Make sure previous flushing decisions are revisited.
1081 isolate_->heap()->incremental_marking()->IterateBlackObject(function); 1081 isolate_->heap()->incremental_marking()->IterateBlackObject(function);
1082 isolate_->heap()->incremental_marking()->IterateBlackObject( 1082 isolate_->heap()->incremental_marking()->IterateBlackObject(
1083 function->shared()); 1083 function->shared());
1084 1084
1085 if (FLAG_trace_code_flushing) { 1085 if (FLAG_trace_code_flushing) {
1086 PrintF("[code-flushing abandons closure: "); 1086 PrintF("[code-flushing abandons closure: ");
1087 function->shared()->ShortPrint(); 1087 function->shared()->ShortPrint();
(...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 MarkBit mark_bit = Marking::MarkBitFrom(host); 3985 MarkBit mark_bit = Marking::MarkBitFrom(host);
3986 if (Marking::IsBlack(mark_bit)) { 3986 if (Marking::IsBlack(mark_bit)) {
3987 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host); 3987 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host);
3988 RecordRelocSlot(host, &rinfo, target); 3988 RecordRelocSlot(host, &rinfo, target);
3989 } 3989 }
3990 } 3990 }
3991 } 3991 }
3992 3992
3993 } // namespace internal 3993 } // namespace internal
3994 } // namespace v8 3994 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | src/heap/mark-compact-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698