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

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

Issue 18649002: Revert "Fix stack alignment corruption for MinGW32 build" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | test/cctest/test-assembler-ia32.cc » ('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 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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 return *reinterpret_cast<const double*>(&nanval); 1472 return *reinterpret_cast<const double*>(&nanval);
1473 #else // _MSC_VER 1473 #else // _MSC_VER
1474 return NAN; 1474 return NAN;
1475 #endif // _MSC_VER 1475 #endif // _MSC_VER
1476 } 1476 }
1477 1477
1478 1478
1479 int OS::ActivationFrameAlignment() { 1479 int OS::ActivationFrameAlignment() {
1480 #ifdef _WIN64 1480 #ifdef _WIN64
1481 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. 1481 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned.
1482 #elif defined(__MINGW32__)
1483 // With gcc 4.4 the tree vectorization optimizer can generate code
1484 // that requires 16 byte alignment such as movdqa on x86.
1485 return 16;
1486 #else 1482 #else
1487 return 8; // Floating-point math runs faster with 8-byte alignment. 1483 return 8; // Floating-point math runs faster with 8-byte alignment.
1488 #endif 1484 #endif
1489 } 1485 }
1490 1486
1491 1487
1492 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } 1488 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { }
1493 1489
1494 1490
1495 VirtualMemory::VirtualMemory(size_t size) 1491 VirtualMemory::VirtualMemory(size_t size)
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 limit_mutex = CreateMutex(); 1981 limit_mutex = CreateMutex();
1986 } 1982 }
1987 1983
1988 1984
1989 void OS::TearDown() { 1985 void OS::TearDown() {
1990 delete limit_mutex; 1986 delete limit_mutex;
1991 } 1987 }
1992 1988
1993 1989
1994 } } // namespace v8::internal 1990 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698