| 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
|
|
|