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

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

Issue 2804005: [Isolates] Removal of miscellaneous statics from the backend. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 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/x64/disasm-x64.cc ('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 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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 int argument_stack_space = 2 * kPointerSize; 2095 int argument_stack_space = 2 * kPointerSize;
2096 // We also need backing space for 4 parameters, even though 2096 // We also need backing space for 4 parameters, even though
2097 // we only pass one or two parameter, and it is in a register. 2097 // we only pass one or two parameter, and it is in a register.
2098 int argument_mirror_space = 4 * kPointerSize; 2098 int argument_mirror_space = 4 * kPointerSize;
2099 int total_stack_space = 2099 int total_stack_space =
2100 argument_mirror_space + argument_stack_space + result_stack_space; 2100 argument_mirror_space + argument_stack_space + result_stack_space;
2101 subq(rsp, Immediate(total_stack_space)); 2101 subq(rsp, Immediate(total_stack_space));
2102 #endif 2102 #endif
2103 2103
2104 // Get the required frame alignment for the OS. 2104 // Get the required frame alignment for the OS.
2105 static const int kFrameAlignment = OS::ActivationFrameAlignment(); 2105 const int kFrameAlignment = OS::ActivationFrameAlignment();
2106 if (kFrameAlignment > 0) { 2106 if (kFrameAlignment > 0) {
2107 ASSERT(IsPowerOf2(kFrameAlignment)); 2107 ASSERT(IsPowerOf2(kFrameAlignment));
2108 movq(kScratchRegister, Immediate(-kFrameAlignment)); 2108 movq(kScratchRegister, Immediate(-kFrameAlignment));
2109 and_(rsp, kScratchRegister); 2109 and_(rsp, kScratchRegister);
2110 } 2110 }
2111 2111
2112 // Patch the saved entry sp. 2112 // Patch the saved entry sp.
2113 movq(Operand(rbp, ExitFrameConstants::kSPOffset), rsp); 2113 movq(Operand(rbp, ExitFrameConstants::kSPOffset), rsp);
2114 } 2114 }
2115 2115
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 CPU::FlushICache(address_, size_); 2713 CPU::FlushICache(address_, size_);
2714 2714
2715 // Check that the code was patched as expected. 2715 // Check that the code was patched as expected.
2716 ASSERT(masm_.pc_ == address_ + size_); 2716 ASSERT(masm_.pc_ == address_ + size_);
2717 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2717 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2718 } 2718 }
2719 2719
2720 } } // namespace v8::internal 2720 } } // namespace v8::internal
2721 2721
2722 #endif // V8_TARGET_ARCH_X64 2722 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698