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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 21477002: Introduce PopReturnAddressTo and PushReturnAddressFrom macro-assembler instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4801 matching lines...) Expand 10 before | Expand all | Expand 10 after
4812 4812
4813 4813
4814 // ---------------------------------------------------------------------------- 4814 // ----------------------------------------------------------------------------
4815 // Non-local control flow support. 4815 // Non-local control flow support.
4816 4816
4817 4817
4818 void FullCodeGenerator::EnterFinallyBlock() { 4818 void FullCodeGenerator::EnterFinallyBlock() {
4819 ASSERT(!result_register().is(rdx)); 4819 ASSERT(!result_register().is(rdx));
4820 ASSERT(!result_register().is(rcx)); 4820 ASSERT(!result_register().is(rcx));
4821 // Cook return address on top of stack (smi encoded Code* delta) 4821 // Cook return address on top of stack (smi encoded Code* delta)
4822 __ pop(rdx); 4822 __ PopReturnAddressTo(rdx);
4823 __ Move(rcx, masm_->CodeObject()); 4823 __ Move(rcx, masm_->CodeObject());
4824 __ subq(rdx, rcx); 4824 __ subq(rdx, rcx);
4825 __ Integer32ToSmi(rdx, rdx); 4825 __ Integer32ToSmi(rdx, rdx);
4826 __ push(rdx); 4826 __ push(rdx);
4827 4827
4828 // Store result register while executing finally block. 4828 // Store result register while executing finally block.
4829 __ push(result_register()); 4829 __ push(result_register());
4830 4830
4831 // Store pending message while executing finally block. 4831 // Store pending message while executing finally block.
4832 ExternalReference pending_message_obj = 4832 ExternalReference pending_message_obj =
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
4905 *context_length = 0; 4905 *context_length = 0;
4906 return previous_; 4906 return previous_;
4907 } 4907 }
4908 4908
4909 4909
4910 #undef __ 4910 #undef __
4911 4911
4912 } } // namespace v8::internal 4912 } } // namespace v8::internal
4913 4913
4914 #endif // V8_TARGET_ARCH_X64 4914 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698