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

Unified Diff: test/cctest/test-code-stubs.h

Issue 18333012: x64 support for d-to-i (truncated) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback addressed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/test-code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-code-stubs.h
diff --git a/src/icu_util.h b/test/cctest/test-code-stubs.h
similarity index 79%
copy from src/icu_util.h
copy to test/cctest/test-code-stubs.h
index 478abce508cc69a74b83028e19ddc66f9ea1d641..eab8e63b2a75c5cc515912b29429b2c598bb041d 100644
--- a/src/icu_util.h
+++ b/test/cctest/test-code-stubs.h
@@ -25,18 +25,24 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#ifndef V8_TEST_CODE_STUBS_H_
+#define V8_TEST_CODE_STUBS_H_
-#ifndef V8_ICU_UTIL_H_
-#define V8_ICU_UTIL_H_
+#if V8_TARGET_ARCH_IA32
+#if __GNUC__
+#define STDCALL __attribute__((stdcall))
+#else
+#define STDCALL __stdcall
+#endif
+#else
+#define STDCALL
+#endif
-namespace v8 {
+typedef int32_t STDCALL ConvertDToIFuncType(double input);
+typedef ConvertDToIFuncType* ConvertDToIFunc;
-namespace internal {
+int STDCALL ConvertDToICVersion(double d);
-// Call this function to load ICU's data tables for the current process. This
-// function should be called before ICU is used.
-bool InitializeICU();
+void RunAllTruncationTests(ConvertDToIFunc func);
-} } // namespace v8::internal
-
-#endif // V8_ICU_UTIL_H_
+#endif
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/test-code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698