Update V8 to r4588
We're using WebKit r58033, as used by
http://src.chromium.org/svn/releases/5.0.387.0/DEPS
This requires http://v8.googlecode.com/svn/trunk@4465 but this version has a
crashing bug for ARM. Instead we use http://v8.googlecode.com/svn/trunk@4588,
which is used by http://src.chromium.org/svn/releases/6.0.399.0/DEPS
Note that a trivial bug fix was required in arm/codegen-arm.cc. This is guarded
with ANDROID. See http://code.google.com/p/v8/issues/detail?id=703
Change-Id: I459647a8286c4f8c7405f0c5581ecbf051a6f1e8
diff --git a/test/mjsunit/codegen-coverage.js b/test/mjsunit/codegen-coverage.js
index 42c371b..8e7f189 100644
--- a/test/mjsunit/codegen-coverage.js
+++ b/test/mjsunit/codegen-coverage.js
@@ -33,6 +33,13 @@
return x;
}
+function lookup(w, a) {
+ // This function tests a code path in the generation of a keyed load IC
+ // where the key and the value are both in the same register.
+ a = a;
+ w[a] = a;
+}
+
function cover_codegen_paths() {
var x = 1;
@@ -131,6 +138,12 @@
assertEquals(1073741824, 1 - di);
x = 3;
+ var w = { };
+ lookup(w, x);
+ lookup(w, x);
+ lookup(w, x);
+
+ x = 3; // Terminate while loop.
}
}