Index: src/checks.h |
diff --git a/src/checks.h b/src/checks.h |
index 832f778b25c5302a5152780ed896ba1335f4a13d..8608b0eba979a55bbd7f48eef5bb45261b029b95 100644 |
--- a/src/checks.h |
+++ b/src/checks.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2006-2008 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -52,10 +52,10 @@ extern "C" void V8_Fatal(const char* file, int line, const char* format, ...); |
// Used by the CHECK macro -- should not be called directly. |
-static inline void CheckHelper(const char* file, |
- int line, |
- const char* source, |
- bool condition) { |
+inline void CheckHelper(const char* file, |
+ int line, |
+ const char* source, |
+ bool condition) { |
if (!condition) |
V8_Fatal(file, line, "CHECK(%s) failed", source); |
} |
@@ -70,9 +70,9 @@ static inline void CheckHelper(const char* file, |
// Helper function used by the CHECK_EQ function when given int |
// arguments. Should not be called directly. |
-static inline void CheckEqualsHelper(const char* file, int line, |
- const char* expected_source, int expected, |
- const char* value_source, int value) { |
+inline void CheckEqualsHelper(const char* file, int line, |
+ const char* expected_source, int expected, |
+ const char* value_source, int value) { |
if (expected != value) { |
V8_Fatal(file, line, |
"CHECK_EQ(%s, %s) failed\n# Expected: %i\n# Found: %i", |
@@ -83,11 +83,11 @@ static inline void CheckEqualsHelper(const char* file, int line, |
// Helper function used by the CHECK_EQ function when given int64_t |
// arguments. Should not be called directly. |
-static inline void CheckEqualsHelper(const char* file, int line, |
- const char* expected_source, |
- int64_t expected, |
- const char* value_source, |
- int64_t value) { |
+inline void CheckEqualsHelper(const char* file, int line, |
+ const char* expected_source, |
+ int64_t expected, |
+ const char* value_source, |
+ int64_t value) { |
if (expected != value) { |
// Print int64_t values in hex, as two int32s, |
// to avoid platform-dependencies. |
@@ -105,12 +105,12 @@ static inline void CheckEqualsHelper(const char* file, int line, |
// Helper function used by the CHECK_NE function when given int |
// arguments. Should not be called directly. |
-static inline void CheckNonEqualsHelper(const char* file, |
- int line, |
- const char* unexpected_source, |
- int unexpected, |
- const char* value_source, |
- int value) { |
+inline void CheckNonEqualsHelper(const char* file, |
+ int line, |
+ const char* unexpected_source, |
+ int unexpected, |
+ const char* value_source, |
+ int value) { |
if (unexpected == value) { |
V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %i", |
unexpected_source, value_source, value); |
@@ -120,12 +120,12 @@ static inline void CheckNonEqualsHelper(const char* file, |
// Helper function used by the CHECK function when given string |
// arguments. Should not be called directly. |
-static inline void CheckEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- const char* expected, |
- const char* value_source, |
- const char* value) { |
+inline void CheckEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ const char* expected, |
+ const char* value_source, |
+ const char* value) { |
if ((expected == NULL && value != NULL) || |
(expected != NULL && value == NULL) || |
(expected != NULL && value != NULL && strcmp(expected, value) != 0)) { |
@@ -136,12 +136,12 @@ static inline void CheckEqualsHelper(const char* file, |
} |
-static inline void CheckNonEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- const char* expected, |
- const char* value_source, |
- const char* value) { |
+inline void CheckNonEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ const char* expected, |
+ const char* value_source, |
+ const char* value) { |
if (expected == value || |
(expected != NULL && value != NULL && strcmp(expected, value) == 0)) { |
V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %s", |
@@ -152,12 +152,12 @@ static inline void CheckNonEqualsHelper(const char* file, |
// Helper function used by the CHECK function when given pointer |
// arguments. Should not be called directly. |
-static inline void CheckEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- const void* expected, |
- const char* value_source, |
- const void* value) { |
+inline void CheckEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ const void* expected, |
+ const char* value_source, |
+ const void* value) { |
if (expected != value) { |
V8_Fatal(file, line, |
"CHECK_EQ(%s, %s) failed\n# Expected: %p\n# Found: %p", |
@@ -167,12 +167,12 @@ static inline void CheckEqualsHelper(const char* file, |
} |
-static inline void CheckNonEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- const void* expected, |
- const char* value_source, |
- const void* value) { |
+inline void CheckNonEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ const void* expected, |
+ const char* value_source, |
+ const void* value) { |
if (expected == value) { |
V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %p", |
expected_source, value_source, value); |
@@ -182,12 +182,12 @@ static inline void CheckNonEqualsHelper(const char* file, |
// Helper function used by the CHECK function when given floating |
// point arguments. Should not be called directly. |
-static inline void CheckEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- double expected, |
- const char* value_source, |
- double value) { |
+inline void CheckEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ double expected, |
+ const char* value_source, |
+ double value) { |
// Force values to 64 bit memory to truncate 80 bit precision on IA32. |
volatile double* exp = new double[1]; |
*exp = expected; |
@@ -203,12 +203,12 @@ static inline void CheckEqualsHelper(const char* file, |
} |
-static inline void CheckNonEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- double expected, |
- const char* value_source, |
- double value) { |
+inline void CheckNonEqualsHelper(const char* file, |
+ int line, |
+ const char* expected_source, |
+ double expected, |
+ const char* value_source, |
+ double value) { |
// Force values to 64 bit memory to truncate 80 bit precision on IA32. |
volatile double* exp = new double[1]; |
*exp = expected; |