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

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

Issue 173563: Use Arguments object in C builtins, instead of __argc__ and __argv__. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/builtins.cc ('k') | src/x64/frames-x64.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 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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 #ifdef _MSC_VER 1310 #ifdef _MSC_VER
1311 static const __int64 nanval = 0xfff8000000000000; 1311 static const __int64 nanval = 0xfff8000000000000;
1312 return *reinterpret_cast<const double*>(&nanval); 1312 return *reinterpret_cast<const double*>(&nanval);
1313 #else // _MSC_VER 1313 #else // _MSC_VER
1314 return NAN; 1314 return NAN;
1315 #endif // _MSC_VER 1315 #endif // _MSC_VER
1316 } 1316 }
1317 1317
1318 1318
1319 int OS::ActivationFrameAlignment() { 1319 int OS::ActivationFrameAlignment() {
1320 // Floating point code runs faster if the stack is 8-byte aligned. 1320 #ifdef _WIN64
1321 return 8; 1321 return 16; // C math library requires the stack to be 16-byte aligned.
Søren Thygesen Gjesse 2009/08/27 11:18:14 Is this only for math?
William Hesse 2009/08/27 11:26:12 I don't know.
Lasse Reichstein 2009/08/27 11:35:28 No, this is for all function calls in Win64. See h
1322 #else
1323 return 8; // Floating-point math runs faster if stack is at least 8-byte alig ned.
1324 #endif
1322 } 1325 }
1323 1326
1324 1327
1325 bool VirtualMemory::IsReserved() { 1328 bool VirtualMemory::IsReserved() {
1326 return address_ != NULL; 1329 return address_ != NULL;
1327 } 1330 }
1328 1331
1329 1332
1330 VirtualMemory::VirtualMemory(size_t size) { 1333 VirtualMemory::VirtualMemory(size_t size) {
1331 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); 1334 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 1881
1879 // Release the thread handles 1882 // Release the thread handles
1880 CloseHandle(data_->sampler_thread_); 1883 CloseHandle(data_->sampler_thread_);
1881 CloseHandle(data_->profiled_thread_); 1884 CloseHandle(data_->profiled_thread_);
1882 } 1885 }
1883 1886
1884 1887
1885 #endif // ENABLE_LOGGING_AND_PROFILING 1888 #endif // ENABLE_LOGGING_AND_PROFILING
1886 1889
1887 } } // namespace v8::internal 1890 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/x64/frames-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698