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

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

Issue 6576030: X64 Crankshaft: Implement Math.abs on x64 lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 10, 1496 10,
1497 -1 1497 -1
1498 }; 1498 };
1499 1499
1500 1500
1501 void MacroAssembler::StoreToSafepointRegisterSlot(Register dst, Register src) { 1501 void MacroAssembler::StoreToSafepointRegisterSlot(Register dst, Register src) {
1502 movq(SafepointRegisterSlot(dst), src); 1502 movq(SafepointRegisterSlot(dst), src);
1503 } 1503 }
1504 1504
1505 1505
1506 void MacroAssembler::LoadFromSafepointRegisterSlot(Register dst, Register src) {
1507 movq(dst, SafepointRegisterSlot(src));
1508 }
1509
1510
1506 Operand MacroAssembler::SafepointRegisterSlot(Register reg) { 1511 Operand MacroAssembler::SafepointRegisterSlot(Register reg) {
1507 return Operand(rsp, SafepointRegisterStackIndex(reg.code()) * kPointerSize); 1512 return Operand(rsp, SafepointRegisterStackIndex(reg.code()) * kPointerSize);
1508 } 1513 }
1509 1514
1510 1515
1511 void MacroAssembler::PushTryHandler(CodeLocation try_location, 1516 void MacroAssembler::PushTryHandler(CodeLocation try_location,
1512 HandlerType type) { 1517 HandlerType type) {
1513 // Adjust this code if not the case. 1518 // Adjust this code if not the case.
1514 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); 1519 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize);
1515 1520
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 CPU::FlushICache(address_, size_); 2651 CPU::FlushICache(address_, size_);
2647 2652
2648 // Check that the code was patched as expected. 2653 // Check that the code was patched as expected.
2649 ASSERT(masm_.pc_ == address_ + size_); 2654 ASSERT(masm_.pc_ == address_ + size_);
2650 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2655 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2651 } 2656 }
2652 2657
2653 } } // namespace v8::internal 2658 } } // namespace v8::internal
2654 2659
2655 #endif // V8_TARGET_ARCH_X64 2660 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/lithium-codegen-x64.cc ('K') | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698