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

Side by Side Diff: src/x64/assembler-x64.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/x64/assembler-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 26 matching lines...) Expand all
37 37
38 // ----------------------------------------------------------------------------- 38 // -----------------------------------------------------------------------------
39 // Implementation of CpuFeatures 39 // Implementation of CpuFeatures
40 40
41 41
42 #ifdef DEBUG 42 #ifdef DEBUG
43 bool CpuFeatures::initialized_ = false; 43 bool CpuFeatures::initialized_ = false;
44 #endif 44 #endif
45 uint64_t CpuFeatures::supported_ = CpuFeatures::kDefaultCpuFeatures; 45 uint64_t CpuFeatures::supported_ = CpuFeatures::kDefaultCpuFeatures;
46 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; 46 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0;
47 47 uint64_t CpuFeatures::cross_compile_ = 0;
48 48
49 ExternalReference ExternalReference::cpu_features() { 49 ExternalReference ExternalReference::cpu_features() {
50 ASSERT(CpuFeatures::initialized_); 50 ASSERT(CpuFeatures::initialized_);
51 return ExternalReference(&CpuFeatures::supported_); 51 return ExternalReference(&CpuFeatures::supported_);
52 } 52 }
53 53
54 54
55 void CpuFeatures::Probe() { 55 void CpuFeatures::Probe() {
56 ASSERT(supported_ == CpuFeatures::kDefaultCpuFeatures); 56 ASSERT(supported_ == CpuFeatures::kDefaultCpuFeatures);
57 #ifdef DEBUG 57 #ifdef DEBUG
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 bool RelocInfo::IsCodedSpecially() { 3051 bool RelocInfo::IsCodedSpecially() {
3052 // The deserializer needs to know whether a pointer is specially coded. Being 3052 // The deserializer needs to know whether a pointer is specially coded. Being
3053 // specially coded on x64 means that it is a relative 32 bit address, as used 3053 // specially coded on x64 means that it is a relative 32 bit address, as used
3054 // by branch instructions. 3054 // by branch instructions.
3055 return (1 << rmode_) & kApplyMask; 3055 return (1 << rmode_) & kApplyMask;
3056 } 3056 }
3057 3057
3058 } } // namespace v8::internal 3058 } } // namespace v8::internal
3059 3059
3060 #endif // V8_TARGET_ARCH_X64 3060 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698