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

Side by Side Diff: src/assembler.cc

Issue 26680002: Ensure only whitelisted stubs have sse2 versions in the snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: string add is unsafe since it has a double saving centry stub Created 7 years, 2 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/code-stubs.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 CpuFeatureScope::~CpuFeatureScope() { 203 CpuFeatureScope::~CpuFeatureScope() {
204 assembler_->set_enabled_cpu_features(old_enabled_); 204 assembler_->set_enabled_cpu_features(old_enabled_);
205 } 205 }
206 #endif 206 #endif
207 207
208 208
209 // ----------------------------------------------------------------------------- 209 // -----------------------------------------------------------------------------
210 // Implementation of PlatformFeatureScope 210 // Implementation of PlatformFeatureScope
211 211
212 PlatformFeatureScope::PlatformFeatureScope(CpuFeature f) 212 PlatformFeatureScope::PlatformFeatureScope(CpuFeature f)
213 : old_supported_(CpuFeatures::supported_), 213 : old_cross_compile_(CpuFeatures::cross_compile_) {
214 old_found_by_runtime_probing_only_(
215 CpuFeatures::found_by_runtime_probing_only_) {
216 uint64_t mask = static_cast<uint64_t>(1) << f; 214 uint64_t mask = static_cast<uint64_t>(1) << f;
217 CpuFeatures::supported_ |= mask; 215 CpuFeatures::cross_compile_ |= mask;
218 CpuFeatures::found_by_runtime_probing_only_ &= ~mask;
219 } 216 }
220 217
221 218
222 PlatformFeatureScope::~PlatformFeatureScope() { 219 PlatformFeatureScope::~PlatformFeatureScope() {
223 CpuFeatures::supported_ = old_supported_; 220 CpuFeatures::cross_compile_ = old_cross_compile_;
224 CpuFeatures::found_by_runtime_probing_only_ =
225 old_found_by_runtime_probing_only_;
226 } 221 }
227 222
228 223
229 // ----------------------------------------------------------------------------- 224 // -----------------------------------------------------------------------------
230 // Implementation of Label 225 // Implementation of Label
231 226
232 int Label::pos() const { 227 int Label::pos() const {
233 if (pos_ < 0) return -pos_ - 1; 228 if (pos_ < 0) return -pos_ - 1;
234 if (pos_ > 0) return pos_ - 1; 229 if (pos_ > 0) return pos_ - 1;
235 UNREACHABLE(); 230 UNREACHABLE();
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1691 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1697 state_.written_position = state_.current_position; 1692 state_.written_position = state_.current_position;
1698 written = true; 1693 written = true;
1699 } 1694 }
1700 1695
1701 // Return whether something was written. 1696 // Return whether something was written.
1702 return written; 1697 return written;
1703 } 1698 }
1704 1699
1705 } } // namespace v8::internal 1700 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698