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

Unified Diff: test/mjsunit/regress/regress-empty-fixed-double-array.js

Issue 249593002: Fix C++ type of Factory::NewFixedDoubleArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added some comments Created 6 years, 8 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 | « src/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-empty-fixed-double-array.js
diff --git a/test/mjsunit/regress/regress-observe-map-cache.js b/test/mjsunit/regress/regress-empty-fixed-double-array.js
similarity index 66%
copy from test/mjsunit/regress/regress-observe-map-cache.js
copy to test/mjsunit/regress/regress-empty-fixed-double-array.js
index 4c7a7e3e973d12cde43caaa64b11f6f08cef3dcc..1db9e2b3e54e2abfddddd23f4ee6618ae438db20 100644
--- a/test/mjsunit/regress/regress-observe-map-cache.js
+++ b/test/mjsunit/regress/regress-empty-fixed-double-array.js
@@ -4,11 +4,12 @@
// Flags: --allow-natives-syntax --enable-slow-asserts
-function f() {
- var x = new Array(0);
- x[-1] = -1;
- Object.observe(x, function() { });
+function f(a, x) {
+ a.shift();
+ a[0] = x;
}
-f();
-f();
+f([1], 1.1);
+f([1], 1.1);
+%OptimizeFunctionOnNextCall(f);
+f([1], 1.1);
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698