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

Unified Diff: src/win32-math.h

Issue 7860035: Merge bleeding edge up to 9192 into the GC branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/weakmap.js ('k') | src/win32-math.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/win32-math.h
diff --git a/test/mjsunit/regress/regress-1110.js b/src/win32-math.h
similarity index 69%
copy from test/mjsunit/regress/regress-1110.js
copy to src/win32-math.h
index 204a87ba3d16743a945fb2fb5817538fd43e7315..68759990b4307b5f40f0b528afbddfe5cea6c43b 100644
--- a/test/mjsunit/regress/regress-1110.js
+++ b/src/win32-math.h
@@ -25,14 +25,37 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Test that the illegal continue is thrown at parse time.
-
-try {
- function Crash() { continue;if (Crash) {
- } }
- Crash();
- assertTrue(false);
-} catch (e) {
- assertTrue(e instanceof SyntaxError);
- assertTrue(/continue/.test(e.message));
-}
+// Extra POSIX/ANSI routines for Win32 when using Visual Studio C++. Please
+// refer to The Open Group Base Specification for specification of the correct
+// semantics for these functions.
+// (http://www.opengroup.org/onlinepubs/000095399/)
+
+#ifndef V8_WIN32_MATH_H_
+#define V8_WIN32_MATH_H_
+
+#ifndef _MSC_VER
+#error Wrong environment, expected MSVC.
+#endif // _MSC_VER
+
+enum {
+ FP_NAN,
+ FP_INFINITE,
+ FP_ZERO,
+ FP_SUBNORMAL,
+ FP_NORMAL
+};
+
+namespace v8 {
+
+int isfinite(double x);
+
+} // namespace v8
+
+int isnan(double x);
+int isinf(double x);
+int isless(double x, double y);
+int isgreater(double x, double y);
+int fpclassify(double x);
+int signbit(double x);
+
+#endif // V8_WIN32_MATH_H_
« no previous file with comments | « src/weakmap.js ('k') | src/win32-math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698