From 70d1f32f5605465a1a630a64f6f0d35f96c7709d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 19 Jun 2015 13:23:56 +0200 Subject: deps: update v8 to 4.4.63.9 Upgrade the bundled V8 and update code in src/ and lib/ to the new API. Notable backwards incompatible changes are the removal of the smalloc module and dropped support for CESU-8 decoding. CESU-8 support can be brought back if necessary by doing UTF-8 decoding ourselves. This commit includes https://codereview.chromium.org/1192973004 to fix a build error on python 2.6 systems. The original commit log follows: Use optparse in js2c.py for python compatibility Without this change, V8 won't build on RHEL/CentOS 6 because the distro python is too old to know about the argparse module. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By: Rod Vagg Reviewed-By: Trevor Norris --- deps/v8/src/utils.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'deps/v8/src/utils.cc') diff --git a/deps/v8/src/utils.cc b/deps/v8/src/utils.cc index c6fe55b5c6..5370e386ad 100644 --- a/deps/v8/src/utils.cc +++ b/deps/v8/src/utils.cc @@ -114,6 +114,15 @@ void PrintPID(const char* format, ...) { } +void PrintIsolate(void* isolate, const char* format, ...) { + base::OS::Print("[%d:%p] ", base::OS::GetCurrentProcessId(), isolate); + va_list arguments; + va_start(arguments, format); + base::OS::VPrint(format, arguments); + va_end(arguments); +} + + int SNPrintF(Vector str, const char* format, ...) { va_list args; va_start(args, format); @@ -203,7 +212,7 @@ char* ReadCharsFromFile(FILE* file, } // Get the size of the file and rewind it. - *size = ftell(file); + *size = static_cast(ftell(file)); rewind(file); char* result = NewArray(*size + extra_space); -- cgit v1.2.1