From ce5adc76847edf10dc843f5c93485e393f0ca099 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Thu, 20 Oct 2011 10:31:42 +0200 Subject: Revert "Update V8" This reverts commit 1c4a5fcab76d1b769a4c0369d40dd0dd7c0e7495 Several of the qtdeclarative tests and examples are dying randomly with messages like this: > > # > # Fatal error in ../3rdparty/v8/src/objects-inl.h, line 2169 > # CHECK(object->IsJSFunction()) failed > # > > > ==== Stack trace ============================================ > > > ==== Details ================================================ > > ==== Key ============================================ > > ===================== > > Aborted (core dumped) Change-Id: Iebaa2497a6f6ef616ef4c3576c217d2a8a2c1ea5 Reviewed-by: Kent Hansen --- src/v8/0009-Fix-deprecated-Python-code.patch | 51 ---------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/v8/0009-Fix-deprecated-Python-code.patch (limited to 'src/v8/0009-Fix-deprecated-Python-code.patch') diff --git a/src/v8/0009-Fix-deprecated-Python-code.patch b/src/v8/0009-Fix-deprecated-Python-code.patch deleted file mode 100644 index a5d2d084fb..0000000000 --- a/src/v8/0009-Fix-deprecated-Python-code.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 234a7bf490c4870f2d015221bb5158de4933519c Mon Sep 17 00:00:00 2001 -From: Kent Hansen -Date: Fri, 2 Sep 2011 12:03:09 +0200 -Subject: [PATCH 09/11] Fix deprecated Python code - -Needed to make the scripts run on Python 3, which is the -default python interpreter on some newer distros. - -Patch from http://code.google.com/p/v8/issues/detail?id=1391 ---- - tools/js2c.py | 4 ++-- - tools/jsmin.py | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tools/js2c.py b/tools/js2c.py -index a2ea8ea..fe6a72e 100644 ---- a/tools/js2c.py -+++ b/tools/js2c.py -@@ -194,14 +194,14 @@ def ReadMacros(lines): - macro_match = MACRO_PATTERN.match(line) - if macro_match: - name = macro_match.group(1) -- args = map(string.strip, macro_match.group(2).split(',')) -+ args = args = [match.strip() for match in macro_match.group(2).split(',')] - body = macro_match.group(3).strip() - macros.append((re.compile("\\b%s\\(" % name), TextMacro(args, body))) - else: - python_match = PYTHON_MACRO_PATTERN.match(line) - if python_match: - name = python_match.group(1) -- args = map(string.strip, python_match.group(2).split(',')) -+ args = [match.strip() for match in python_match.group(2).split(',')] - body = python_match.group(3).strip() - fun = eval("lambda " + ",".join(args) + ': ' + body) - macros.append((re.compile("\\b%s\\(" % name), PythonMacro(args, fun))) -diff --git a/tools/jsmin.py b/tools/jsmin.py -index 646bf14..395441b 100644 ---- a/tools/jsmin.py -+++ b/tools/jsmin.py -@@ -154,7 +154,7 @@ class JavaScriptMinifier(object): - return var_name - while True: - identifier_first_char = self.identifier_counter % 52 -- identifier_second_char = self.identifier_counter / 52 -+ identifier_second_char = self.identifier_counter // 52 - new_identifier = self.CharFromNumber(identifier_first_char) - if identifier_second_char != 0: - new_identifier = ( --- -1.7.4.4 - -- cgit v1.2.3