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

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

Issue 12456002: Remove obsolete CodeFlusher debug code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mark-compact.h ('k') | no next file » | 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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 isolate_->heap()->mark_compact_collector()-> 1054 isolate_->heap()->mark_compact_collector()->
1055 RecordSlot(code_slot, code_slot, *code_slot); 1055 RecordSlot(code_slot, code_slot, *code_slot);
1056 1056
1057 candidate = next_candidate; 1057 candidate = next_candidate;
1058 } 1058 }
1059 1059
1060 shared_function_info_candidates_head_ = NULL; 1060 shared_function_info_candidates_head_ = NULL;
1061 } 1061 }
1062 1062
1063 1063
1064 bool CodeFlusher::ContainsCandidate(SharedFunctionInfo* shared_info) {
1065 SharedFunctionInfo* candidate = shared_function_info_candidates_head_;
1066 while (candidate != NULL) {
1067 if (candidate == shared_info) return true;
1068 candidate = GetNextCandidate(candidate);
1069 }
1070 return false;
1071 }
1072
1073
1074 void CodeFlusher::EvictCandidate(SharedFunctionInfo* shared_info) { 1064 void CodeFlusher::EvictCandidate(SharedFunctionInfo* shared_info) {
1075 // Make sure previous flushing decisions are revisited. 1065 // Make sure previous flushing decisions are revisited.
1076 isolate_->heap()->incremental_marking()->RecordWrites(shared_info); 1066 isolate_->heap()->incremental_marking()->RecordWrites(shared_info);
1077 1067
1078 SharedFunctionInfo* candidate = shared_function_info_candidates_head_; 1068 SharedFunctionInfo* candidate = shared_function_info_candidates_head_;
1079 SharedFunctionInfo* next_candidate; 1069 SharedFunctionInfo* next_candidate;
1080 if (candidate == shared_info) { 1070 if (candidate == shared_info) {
1081 next_candidate = GetNextCandidate(shared_info); 1071 next_candidate = GetNextCandidate(shared_info);
1082 shared_function_info_candidates_head_ = next_candidate; 1072 shared_function_info_candidates_head_ = next_candidate;
1083 ClearNextCandidate(shared_info); 1073 ClearNextCandidate(shared_info);
(...skipping 3036 matching lines...) Expand 10 before | Expand all | Expand 10 after
4120 while (buffer != NULL) { 4110 while (buffer != NULL) {
4121 SlotsBuffer* next_buffer = buffer->next(); 4111 SlotsBuffer* next_buffer = buffer->next();
4122 DeallocateBuffer(buffer); 4112 DeallocateBuffer(buffer);
4123 buffer = next_buffer; 4113 buffer = next_buffer;
4124 } 4114 }
4125 *buffer_address = NULL; 4115 *buffer_address = NULL;
4126 } 4116 }
4127 4117
4128 4118
4129 } } // namespace v8::internal 4119 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698