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

Side by Side Diff: src/a64/assembler-a64-inl.h

Issue 141363005: A64: Synchronize with r15204. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « include/v8.h ('k') | src/a64/code-stubs-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 } 662 }
663 663
664 664
665 void RelocInfo::set_target_runtime_entry(Address target, 665 void RelocInfo::set_target_runtime_entry(Address target,
666 WriteBarrierMode mode) { 666 WriteBarrierMode mode) {
667 ASSERT(IsRuntimeEntry(rmode_)); 667 ASSERT(IsRuntimeEntry(rmode_));
668 if (target_address() != target) set_target_address(target, mode); 668 if (target_address() != target) set_target_address(target, mode);
669 } 669 }
670 670
671 671
672 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { 672 Handle<Cell> RelocInfo::target_cell_handle() {
673 UNIMPLEMENTED(); 673 UNIMPLEMENTED();
674 JSGlobalPropertyCell *null_cell = NULL; 674 Cell *null_cell = NULL;
675 return Handle<JSGlobalPropertyCell>(null_cell); 675 return Handle<Cell>(null_cell);
676 } 676 }
677 677
678 678
679 JSGlobalPropertyCell* RelocInfo::target_cell() { 679 Cell* RelocInfo::target_cell() {
680 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); 680 ASSERT(rmode_ == RelocInfo::CELL);
681 return JSGlobalPropertyCell::FromValueAddress(Memory::Address_at(pc_)); 681 return Cell::FromValueAddress(Memory::Address_at(pc_));
682 } 682 }
683 683
684 684
685 void RelocInfo::set_target_cell(JSGlobalPropertyCell* cell, 685 void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) {
686 WriteBarrierMode mode) {
687 UNIMPLEMENTED(); 686 UNIMPLEMENTED();
688 } 687 }
689 688
690 689
691 static const int kCodeAgeSequenceSize = 5 * kInstructionSize; 690 static const int kCodeAgeSequenceSize = 5 * kInstructionSize;
692 static const int kCodeAgeStubEntryOffset = 3 * kInstructionSize; 691 static const int kCodeAgeStubEntryOffset = 3 * kInstructionSize;
693 692
694 693
695 Code* RelocInfo::code_age_stub() { 694 Code* RelocInfo::code_age_stub() {
696 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); 695 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 return !current_instr->IsNop(Assembler::DEBUG_BREAK_NOP); 748 return !current_instr->IsNop(Assembler::DEBUG_BREAK_NOP);
750 } 749 }
751 750
752 751
753 void RelocInfo::Visit(ObjectVisitor* visitor) { 752 void RelocInfo::Visit(ObjectVisitor* visitor) {
754 RelocInfo::Mode mode = rmode(); 753 RelocInfo::Mode mode = rmode();
755 if (mode == RelocInfo::EMBEDDED_OBJECT) { 754 if (mode == RelocInfo::EMBEDDED_OBJECT) {
756 visitor->VisitEmbeddedPointer(this); 755 visitor->VisitEmbeddedPointer(this);
757 } else if (RelocInfo::IsCodeTarget(mode)) { 756 } else if (RelocInfo::IsCodeTarget(mode)) {
758 visitor->VisitCodeTarget(this); 757 visitor->VisitCodeTarget(this);
759 } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) { 758 } else if (mode == RelocInfo::CELL) {
760 visitor->VisitGlobalPropertyCell(this); 759 visitor->VisitCell(this);
761 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 760 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
762 visitor->VisitExternalReference(this); 761 visitor->VisitExternalReference(this);
763 #ifdef ENABLE_DEBUGGER_SUPPORT 762 #ifdef ENABLE_DEBUGGER_SUPPORT
764 // TODO(isolates): Get a cached isolate below. 763 // TODO(isolates): Get a cached isolate below.
765 } else if (((RelocInfo::IsJSReturn(mode) && 764 } else if (((RelocInfo::IsJSReturn(mode) &&
766 IsPatchedReturnSequence()) || 765 IsPatchedReturnSequence()) ||
767 (RelocInfo::IsDebugBreakSlot(mode) && 766 (RelocInfo::IsDebugBreakSlot(mode) &&
768 IsPatchedDebugBreakSlotSequence())) && 767 IsPatchedDebugBreakSlotSequence())) &&
769 Isolate::Current()->debug()->has_break_points()) { 768 Isolate::Current()->debug()->has_break_points()) {
770 visitor->VisitDebugTarget(this); 769 visitor->VisitDebugTarget(this);
771 #endif 770 #endif
772 } else if (RelocInfo::IsRuntimeEntry(mode)) { 771 } else if (RelocInfo::IsRuntimeEntry(mode)) {
773 visitor->VisitRuntimeEntry(this); 772 visitor->VisitRuntimeEntry(this);
774 } 773 }
775 } 774 }
776 775
777 776
778 template<typename StaticVisitor> 777 template<typename StaticVisitor>
779 void RelocInfo::Visit(Heap* heap) { 778 void RelocInfo::Visit(Heap* heap) {
780 RelocInfo::Mode mode = rmode(); 779 RelocInfo::Mode mode = rmode();
781 if (mode == RelocInfo::EMBEDDED_OBJECT) { 780 if (mode == RelocInfo::EMBEDDED_OBJECT) {
782 StaticVisitor::VisitEmbeddedPointer(heap, this); 781 StaticVisitor::VisitEmbeddedPointer(heap, this);
783 } else if (RelocInfo::IsCodeTarget(mode)) { 782 } else if (RelocInfo::IsCodeTarget(mode)) {
784 StaticVisitor::VisitCodeTarget(heap, this); 783 StaticVisitor::VisitCodeTarget(heap, this);
785 } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) { 784 } else if (mode == RelocInfo::CELL) {
786 StaticVisitor::VisitGlobalPropertyCell(heap, this); 785 StaticVisitor::VisitCell(heap, this);
787 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 786 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
788 StaticVisitor::VisitExternalReference(this); 787 StaticVisitor::VisitExternalReference(this);
789 #ifdef ENABLE_DEBUGGER_SUPPORT 788 #ifdef ENABLE_DEBUGGER_SUPPORT
790 } else if (heap->isolate()->debug()->has_break_points() && 789 } else if (heap->isolate()->debug()->has_break_points() &&
791 ((RelocInfo::IsJSReturn(mode) && 790 ((RelocInfo::IsJSReturn(mode) &&
792 IsPatchedReturnSequence()) || 791 IsPatchedReturnSequence()) ||
793 (RelocInfo::IsDebugBreakSlot(mode) && 792 (RelocInfo::IsDebugBreakSlot(mode) &&
794 IsPatchedDebugBreakSlotSequence()))) { 793 IsPatchedDebugBreakSlotSequence()))) {
795 StaticVisitor::VisitDebugTarget(heap, this); 794 StaticVisitor::VisitDebugTarget(heap, this);
796 #endif 795 #endif
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 1152
1154 1153
1155 void Assembler::ClearRecordedAstId() { 1154 void Assembler::ClearRecordedAstId() {
1156 recorded_ast_id_ = TypeFeedbackId::None(); 1155 recorded_ast_id_ = TypeFeedbackId::None();
1157 } 1156 }
1158 1157
1159 1158
1160 } } // namespace v8::internal 1159 } } // namespace v8::internal
1161 1160
1162 #endif // V8_A64_ASSEMBLER_A64_INL_H_ 1161 #endif // V8_A64_ASSEMBLER_A64_INL_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698