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

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

Issue 3064041: Landing r5180 and r5178 from bleeding_edge.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.2/
Patch Set: Created 10 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/version.cc ('k') | src/x64/assembler-x64-inl.h » ('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 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 2927 matching lines...) Expand 10 before | Expand all | Expand 10 after
2938 written_position_ = current_position_; 2938 written_position_ = current_position_;
2939 written = true; 2939 written = true;
2940 } 2940 }
2941 2941
2942 // Return whether something was written. 2942 // Return whether something was written.
2943 return written; 2943 return written;
2944 } 2944 }
2945 2945
2946 2946
2947 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 2947 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
2948 1 << RelocInfo::INTERNAL_REFERENCE | 2948 1 << RelocInfo::INTERNAL_REFERENCE;
2949 1 << RelocInfo::JS_RETURN;
2950 2949
2951 2950
2952 bool RelocInfo::IsCodedSpecially() { 2951 bool RelocInfo::IsCodedSpecially() {
2953 // The deserializer needs to know whether a pointer is specially coded. Being 2952 // The deserializer needs to know whether a pointer is specially coded. Being
2954 // specially coded on x64 means that it is a relative 32 bit address, as used 2953 // specially coded on x64 means that it is a relative 32 bit address, as used
2955 // by branch instructions. 2954 // by branch instructions.
2956 return (1 << rmode_) & kApplyMask; 2955 return (1 << rmode_) & kApplyMask;
2957 } 2956 }
2958 2957
2959 2958
2960 2959
2961 } } // namespace v8::internal 2960 } } // namespace v8::internal
2962 2961
2963 #endif // V8_TARGET_ARCH_X64 2962 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698