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

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

Issue 3615009: Parallelize marking phase of mark-sweep/compact collection cycle. (Closed)
Patch Set: Created 10 years, 2 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/spaces.cc ('k') | test/cctest/test-heap.cc » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 (RelocInfo::IsDebugBreakSlot(mode) && 366 (RelocInfo::IsDebugBreakSlot(mode) &&
367 IsPatchedDebugBreakSlotSequence()))) { 367 IsPatchedDebugBreakSlotSequence()))) {
368 StaticVisitor::VisitDebugTarget(this); 368 StaticVisitor::VisitDebugTarget(this);
369 #endif 369 #endif
370 } else if (mode == RelocInfo::RUNTIME_ENTRY) { 370 } else if (mode == RelocInfo::RUNTIME_ENTRY) {
371 StaticVisitor::VisitRuntimeEntry(this); 371 StaticVisitor::VisitRuntimeEntry(this);
372 } 372 }
373 } 373 }
374 374
375 375
376 template<typename StaticVisitor, typename Data>
377 void RelocInfo::Visit(Data data) {
378 RelocInfo::Mode mode = rmode();
379 if (mode == RelocInfo::EMBEDDED_OBJECT) {
380 StaticVisitor::VisitPointer(target_object_address(), data);
381 } else if (RelocInfo::IsCodeTarget(mode)) {
382 StaticVisitor::VisitCodeTarget(this, data);
383 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
384 StaticVisitor::VisitExternalReference(target_reference_address(), data);
385 #ifdef ENABLE_DEBUGGER_SUPPORT
386 } else if (Debug::has_break_points() &&
387 ((RelocInfo::IsJSReturn(mode) &&
388 IsPatchedReturnSequence()) ||
389 (RelocInfo::IsDebugBreakSlot(mode) &&
390 IsPatchedDebugBreakSlotSequence()))) {
391 StaticVisitor::VisitDebugTarget(this, data);
392 #endif
393 } else if (mode == RelocInfo::RUNTIME_ENTRY) {
394 StaticVisitor::VisitRuntimeEntry(this, data);
395 }
396 }
397
398
376 // ----------------------------------------------------------------------------- 399 // -----------------------------------------------------------------------------
377 // Implementation of Operand 400 // Implementation of Operand
378 401
379 void Operand::set_modrm(int mod, Register rm_reg) { 402 void Operand::set_modrm(int mod, Register rm_reg) {
380 ASSERT(is_uint2(mod)); 403 ASSERT(is_uint2(mod));
381 buf_[0] = mod << 6 | rm_reg.low_bits(); 404 buf_[0] = mod << 6 | rm_reg.low_bits();
382 // Set REX.B to the high bit of rm.code(). 405 // Set REX.B to the high bit of rm.code().
383 rex_ |= rm_reg.high_bit(); 406 rex_ |= rm_reg.high_bit();
384 } 407 }
385 408
(...skipping 21 matching lines...) Expand all
407 ASSERT(len_ == 1 || len_ == 2); 430 ASSERT(len_ == 1 || len_ == 2);
408 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 431 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
409 *p = disp; 432 *p = disp;
410 len_ += sizeof(int32_t); 433 len_ += sizeof(int32_t);
411 } 434 }
412 435
413 436
414 } } // namespace v8::internal 437 } } // namespace v8::internal
415 438
416 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 439 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698