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

Side by Side Diff: src/objects.h

Issue 7039058: MIPS: arch-independent changes to support mips. (Closed)
Patch Set: Created 9 years, 7 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 6707 matching lines...) Expand 10 before | Expand all | Expand 10 after
6718 v8::String::ExternalAsciiStringResource** resource) {} 6718 v8::String::ExternalAsciiStringResource** resource) {}
6719 virtual void VisitExternalTwoByteString( 6719 virtual void VisitExternalTwoByteString(
6720 v8::String::ExternalStringResource** resource) {} 6720 v8::String::ExternalStringResource** resource) {}
6721 6721
6722 // Visits a debug call target in the instruction stream. 6722 // Visits a debug call target in the instruction stream.
6723 virtual void VisitDebugTarget(RelocInfo* rinfo); 6723 virtual void VisitDebugTarget(RelocInfo* rinfo);
6724 6724
6725 // Handy shorthand for visiting a single pointer. 6725 // Handy shorthand for visiting a single pointer.
6726 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } 6726 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); }
6727 6727
6728 // Variant of VisitPointer() can be defined in visitors where
6729 // reloc info is needed (initially defined for mips).
6730 virtual void VisitPointer(Object** p, RelocInfo* rinfo) {
6731 VisitPointers(p, p + 1);
6732 }
6733
6728 // Visits a contiguous arrays of external references (references to the C++ 6734 // Visits a contiguous arrays of external references (references to the C++
6729 // heap) in the half-open range [start, end). Any or all of the values 6735 // heap) in the half-open range [start, end). Any or all of the values
6730 // may be modified on return. 6736 // may be modified on return.
6731 virtual void VisitExternalReferences(Address* start, Address* end) {} 6737 virtual void VisitExternalReferences(Address* start, Address* end) {}
6732 6738
6733 inline void VisitExternalReference(Address* p) { 6739 inline void VisitExternalReference(Address* p) {
6734 VisitExternalReferences(p, p + 1); 6740 VisitExternalReferences(p, p + 1);
6735 } 6741 }
6736 6742
6737 // Visits a handle that has an embedder-assigned class ID. 6743 // Visits a handle that has an embedder-assigned class ID.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
6778 } else { 6784 } else {
6779 value &= ~(1 << bit_position); 6785 value &= ~(1 << bit_position);
6780 } 6786 }
6781 return value; 6787 return value;
6782 } 6788 }
6783 }; 6789 };
6784 6790
6785 } } // namespace v8::internal 6791 } } // namespace v8::internal
6786 6792
6787 #endif // V8_OBJECTS_H_ 6793 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698