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

Side by Side Diff: src/x64/assembler-x64-inl.h

Issue 7639020: Perform TODO(gc) cleanup for TODO-lockdown. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 4 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 237 }
238 } 238 }
239 239
240 240
241 void RelocInfo::set_target_address(Address target, Code* code) { 241 void RelocInfo::set_target_address(Address target, Code* code) {
242 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); 242 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY);
243 if (IsCodeTarget(rmode_)) { 243 if (IsCodeTarget(rmode_)) {
244 Assembler::set_target_address_at(pc_, target); 244 Assembler::set_target_address_at(pc_, target);
245 Object* target_code = Code::GetCodeFromTargetAddress(target); 245 Object* target_code = Code::GetCodeFromTargetAddress(target);
246 if (code != NULL) { 246 if (code != NULL) {
247 // TODO(gc) We do not compact code pages. 247 // TODO(1550) We are passing NULL as a slot because code can never be on
248 // evacuation candidate.
248 code->GetHeap()->incremental_marking()->RecordWrite( 249 code->GetHeap()->incremental_marking()->RecordWrite(
249 code, NULL, HeapObject::cast(target_code)); 250 code, NULL, HeapObject::cast(target_code));
250 } 251 }
251 } else { 252 } else {
252 Memory::Address_at(pc_) = target; 253 Memory::Address_at(pc_) = target;
253 CPU::FlushICache(pc_, sizeof(Address)); 254 CPU::FlushICache(pc_, sizeof(Address));
254 } 255 }
255 } 256 }
256 257
257 258
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 ASSERT(len_ == 1 || len_ == 2); 468 ASSERT(len_ == 1 || len_ == 2);
468 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 469 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
469 *p = disp; 470 *p = disp;
470 len_ += sizeof(int32_t); 471 len_ += sizeof(int32_t);
471 } 472 }
472 473
473 474
474 } } // namespace v8::internal 475 } } // namespace v8::internal
475 476
476 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 477 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« src/spaces.h ('K') | « src/store-buffer.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698