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

Side by Side Diff: src/x64/macro-assembler-x64.cc

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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))), 477 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))),
478 RelocInfo::NONE); 478 RelocInfo::NONE);
479 push(kScratchRegister); 479 push(kScratchRegister);
480 CallRuntime(Runtime::kAbort, 2); 480 CallRuntime(Runtime::kAbort, 2);
481 // will not return here 481 // will not return here
482 int3(); 482 int3();
483 } 483 }
484 484
485 485
486 void MacroAssembler::CallStub(CodeStub* stub, unsigned ast_id) { 486 void MacroAssembler::CallStub(CodeStub* stub, unsigned ast_id) {
487 // TODO(1599): Do not call stubs from stubs that do not allow stub calls.
487 // ASSERT(allow_stub_calls()); // calls are not allowed in some stubs 488 // ASSERT(allow_stub_calls()); // calls are not allowed in some stubs
488 // TODO(gc): Fix this!
489 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); 489 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id);
490 } 490 }
491 491
492 492
493 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) { 493 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) {
494 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. 494 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs.
495 MaybeObject* result = stub->TryGetCode(); 495 MaybeObject* result = stub->TryGetCode();
496 if (!result->IsFailure()) { 496 if (!result->IsFailure()) {
497 call(Handle<Code>(Code::cast(result->ToObjectUnchecked())), 497 call(Handle<Code>(Code::cast(result->ToObjectUnchecked())),
498 RelocInfo::CODE_TARGET); 498 RelocInfo::CODE_TARGET);
(...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after
4023 movq(rcx, addr_reg); 4023 movq(rcx, addr_reg);
4024 shrl(rcx, Immediate(kPointerSizeLog2)); 4024 shrl(rcx, Immediate(kPointerSizeLog2));
4025 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1)); 4025 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1));
4026 movl(mask_reg, Immediate(1)); 4026 movl(mask_reg, Immediate(1));
4027 shl_cl(mask_reg); 4027 shl_cl(mask_reg);
4028 } 4028 }
4029 4029
4030 } } // namespace v8::internal 4030 } } // namespace v8::internal
4031 4031
4032 #endif // V8_TARGET_ARCH_X64 4032 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/spaces.h ('K') | « src/x64/code-stubs-x64.cc ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698