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

Side by Side Diff: src/assembler.cc

Issue 146213004: A64: Synchronize with r16849. (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/assembler.h ('k') | src/builtins.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 (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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 205
206 CpuFeatureScope::~CpuFeatureScope() { 206 CpuFeatureScope::~CpuFeatureScope() {
207 assembler_->set_enabled_cpu_features(old_enabled_); 207 assembler_->set_enabled_cpu_features(old_enabled_);
208 } 208 }
209 #endif 209 #endif
210 210
211 211
212 // ----------------------------------------------------------------------------- 212 // -----------------------------------------------------------------------------
213 // Implementation of PlatformFeatureScope
214
215 PlatformFeatureScope::PlatformFeatureScope(CpuFeature f)
216 : old_supported_(CpuFeatures::supported_),
217 old_found_by_runtime_probing_only_(
218 CpuFeatures::found_by_runtime_probing_only_) {
219 uint64_t mask = static_cast<uint64_t>(1) << f;
220 CpuFeatures::supported_ |= mask;
221 CpuFeatures::found_by_runtime_probing_only_ &= ~mask;
222 }
223
224
225 PlatformFeatureScope::~PlatformFeatureScope() {
226 CpuFeatures::supported_ = old_supported_;
227 CpuFeatures::found_by_runtime_probing_only_ =
228 old_found_by_runtime_probing_only_;
229 }
230
231
232 // -----------------------------------------------------------------------------
213 // Implementation of Label 233 // Implementation of Label
214 234
215 int Label::pos() const { 235 int Label::pos() const {
216 if (pos_ < 0) return -pos_ - 1; 236 if (pos_ < 0) return -pos_ - 1;
217 if (pos_ > 0) return pos_ - 1; 237 if (pos_ > 0) return pos_ - 1;
218 UNREACHABLE(); 238 UNREACHABLE();
219 return 0; 239 return 0;
220 } 240 }
221 241
222 242
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1701 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1682 state_.written_position = state_.current_position; 1702 state_.written_position = state_.current_position;
1683 written = true; 1703 written = true;
1684 } 1704 }
1685 1705
1686 // Return whether something was written. 1706 // Return whether something was written.
1687 return written; 1707 return written;
1688 } 1708 }
1689 1709
1690 } } // namespace v8::internal 1710 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698