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

Unified Diff: test/mjsunit/elements-transition-and-store.js

Issue 139973004: A64: Synchronize with r15814. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/elements-kind.js ('k') | test/mjsunit/elements-transition-hoisting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/elements-transition-and-store.js
diff --git a/test/mjsunit/regress/regress-crbug-245424.js b/test/mjsunit/elements-transition-and-store.js
similarity index 87%
copy from test/mjsunit/regress/regress-crbug-245424.js
copy to test/mjsunit/elements-transition-and-store.js
index 005c8baba9492dd339b4fbdc3b48f7577b9c308a..78ca597ba9f31afac337dc7edb30e02f807ddaf3 100644
--- a/test/mjsunit/regress/regress-crbug-245424.js
+++ b/test/mjsunit/elements-transition-and-store.js
@@ -25,17 +25,17 @@
// (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
+// Flags: --compiled-transitions --notrack-allocation-sites
-function boom() {
- var a = {
- foo: "bar",
- foo: "baz"
- };
+function foo(a, v) {
+ a[0] = v;
return a;
}
-assertEquals("baz", boom().foo);
-assertEquals("baz", boom().foo);
-%OptimizeFunctionOnNextCall(boom);
-assertEquals("baz", boom().foo);
+for (var i = 0; i < 3; ++i) {
+ var a = Array();
+ a = foo(a, 1.5);
+ assertEquals(a[0], 1.5);
+ a = foo(a, 2);
+ assertEquals(a[0], 2);
+}
« no previous file with comments | « test/mjsunit/elements-kind.js ('k') | test/mjsunit/elements-transition-hoisting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698