OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |