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

Unified Diff: test/mjsunit/external-array.js

Issue 6821009: Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger optimization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 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 | « test/mjsunit/const-eval-init.js ('k') | test/mjsunit/regress/regress-1079.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/external-array.js
diff --git a/test/mjsunit/external-array.js b/test/mjsunit/external-array.js
index 228e8f06f6d19fe6d805f870521793ef9531bd54..45d8be5a99f0f36b1196d2d0a381e81cbad08ed3 100644
--- a/test/mjsunit/external-array.js
+++ b/test/mjsunit/external-array.js
@@ -25,6 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Flags: --allow-natives-syntax
+
// This is a regression test for overlapping key and value registers.
function f(a) {
a[0] = 0;
@@ -32,9 +34,11 @@ function f(a) {
}
var a = new Int32Array(2);
-for (var i = 0; i < 1000000; i++) {
+for (var i = 0; i < 5; i++) {
f(a);
}
+%OptimizeFunctionOnNextCall(f);
+f(a);
assertEquals(0, a[0]);
assertEquals(0, a[1]);
« no previous file with comments | « test/mjsunit/const-eval-init.js ('k') | test/mjsunit/regress/regress-1079.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698