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

Side by Side Diff: src/platform-win32.cc

Issue 4211: Allow platforms (linux and win32) to not force 16-byte alignment... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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/platform-macos.cc ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 1199
1200 // Restore warnings to previous settings. 1200 // Restore warnings to previous settings.
1201 #pragma warning(pop) 1201 #pragma warning(pop)
1202 1202
1203 1203
1204 double OS::nan_value() { 1204 double OS::nan_value() {
1205 static const __int64 nanval = 0xfff8000000000000; 1205 static const __int64 nanval = 0xfff8000000000000;
1206 return *reinterpret_cast<const double*>(&nanval); 1206 return *reinterpret_cast<const double*>(&nanval);
1207 } 1207 }
1208 1208
1209
1210 int OS::ActivationFrameAlignment() {
1211 // No constraint on Windows.
1212 return 0;
1213 }
1214
1215
1209 bool VirtualMemory::IsReserved() { 1216 bool VirtualMemory::IsReserved() {
1210 return address_ != NULL; 1217 return address_ != NULL;
1211 } 1218 }
1212 1219
1213 1220
1214 VirtualMemory::VirtualMemory(size_t size) { 1221 VirtualMemory::VirtualMemory(size_t size) {
1215 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); 1222 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
1216 size_ = size; 1223 size_ = size;
1217 } 1224 }
1218 1225
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 1572
1566 // Release the thread handles 1573 // Release the thread handles
1567 CloseHandle(data_->sampler_thread_); 1574 CloseHandle(data_->sampler_thread_);
1568 CloseHandle(data_->profiled_thread_); 1575 CloseHandle(data_->profiled_thread_);
1569 } 1576 }
1570 1577
1571 1578
1572 #endif // ENABLE_LOGGING_AND_PROFILING 1579 #endif // ENABLE_LOGGING_AND_PROFILING
1573 1580
1574 } } // namespace v8::internal 1581 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698