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

Unified Diff: test/mjsunit/regress/setvalueof-deopt.js

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 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
Index: test/mjsunit/regress/setvalueof-deopt.js
diff --git a/test/mjsunit/regress/regress-polymorphic-load.js b/test/mjsunit/regress/setvalueof-deopt.js
similarity index 88%
copy from test/mjsunit/regress/regress-polymorphic-load.js
copy to test/mjsunit/regress/setvalueof-deopt.js
index 2545e85f60a2c7fe8f68dd9c667e38a0528ff127..8c42c8a20baa0845d8450d699e62cd98d7d39c08 100644
--- a/test/mjsunit/regress/regress-polymorphic-load.js
+++ b/test/mjsunit/regress/setvalueof-deopt.js
@@ -1,4 +1,4 @@
-// Copyright 2013 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -27,17 +27,16 @@
// Flags: --allow-natives-syntax
-function f(o) {
- return o.x;
+function g(x, y) {
+ return y;
}
-var o1 = {x:1};
-var o2 = {__proto__: {x:2}};
+function f(deopt) {
+ return g(%_SetValueOf(1, 1), deopt + 0);
+}
-f(o2);
-f(o2);
-f(o2);
-f(o1);
+f(0);
+f(0);
+f(0);
%OptimizeFunctionOnNextCall(f);
-assertEquals(1, f(o1));
-assertEquals(2, f(o2));
+assertEquals("result0", f("result"));
« no previous file with comments | « test/mjsunit/regress/regress-put-prototype-transition.js ('k') | test/mjsunit/regress/string-set-char-deopt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698