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

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

Issue 148593004: A64: Synchronize with r18084. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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
« no previous file with comments | « src/version.cc ('k') | src/x64/builtins-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 // of that call in the instruction stream. 558 // of that call in the instruction stream.
559 static inline Address target_address_from_return_address(Address pc); 559 static inline Address target_address_from_return_address(Address pc);
560 560
561 // This sets the branch destination (which is in the instruction on x64). 561 // This sets the branch destination (which is in the instruction on x64).
562 // This is for calls and branches within generated code. 562 // This is for calls and branches within generated code.
563 inline static void deserialization_set_special_target_at( 563 inline static void deserialization_set_special_target_at(
564 Address instruction_payload, Address target) { 564 Address instruction_payload, Address target) {
565 set_target_address_at(instruction_payload, target); 565 set_target_address_at(instruction_payload, target);
566 } 566 }
567 567
568 // This sets the branch destination (which is a load instruction on x64).
569 // This is for calls and branches to runtime code.
570 inline static void set_external_target_at(Address instruction_payload,
571 Address target) {
572 *reinterpret_cast<Address*>(instruction_payload) = target;
573 }
574
575 inline Handle<Object> code_target_object_handle_at(Address pc); 568 inline Handle<Object> code_target_object_handle_at(Address pc);
576 inline Address runtime_entry_at(Address pc); 569 inline Address runtime_entry_at(Address pc);
577 // Number of bytes taken up by the branch target in the code. 570 // Number of bytes taken up by the branch target in the code.
578 static const int kSpecialTargetSize = 4; // Use 32-bit displacement. 571 static const int kSpecialTargetSize = 4; // Use 32-bit displacement.
579 // Distance between the address of the code target in the call instruction 572 // Distance between the address of the code target in the call instruction
580 // and the return address pushed on the stack. 573 // and the return address pushed on the stack.
581 static const int kCallTargetAddressOffset = 4; // Use 32-bit displacement. 574 static const int kCallTargetAddressOffset = 4; // Use 32-bit displacement.
582 // The length of call(kScratchRegister). 575 // The length of call(kScratchRegister).
583 static const int kCallScratchRegisterInstructionLength = 3; 576 static const int kCallScratchRegisterInstructionLength = 3;
584 // The length of call(Immediate32). 577 // The length of call(Immediate32).
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 private: 1691 private:
1699 Assembler* assembler_; 1692 Assembler* assembler_;
1700 #ifdef DEBUG 1693 #ifdef DEBUG
1701 int space_before_; 1694 int space_before_;
1702 #endif 1695 #endif
1703 }; 1696 };
1704 1697
1705 } } // namespace v8::internal 1698 } } // namespace v8::internal
1706 1699
1707 #endif // V8_X64_ASSEMBLER_X64_H_ 1700 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698