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

Side by Side Diff: test/mjsunit/compiler/named-store.js

Issue 1095313002: [turbofan] Fix reduction of LoadProperty/StoreProperty to LoadNamed/StoreNamed. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/compiler/named-load.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function Foo(a, b) {
6 var bname = "b";
7 this["a"] = a;
8 this[bname] = b;
9 this.x = this.a + this.b;
10 }
11
12 var f1 = new Foo(3, 4);
13 assertEquals(7, f1.x);
14
15 // SMIs
16 for (var i = 0; i < 6; i++) {
17 var f = new Foo(i, i + 2);
18 assertEquals(i + i + 2, f.x);
19 }
20
21 // derbles
22 for (var i = 0.25; i < 6.25; i++) {
23 var f = new Foo(i, i + 2);
24 assertEquals(i + i + 2, f.x);
25 }
26
27 // stirngs
28 for (var i = 0; i < 6; i++) {
29 var f = new Foo(i + "", (i + 2) + "");
30 assertEquals((i + "") + ((i + 2) + ""), f.x);
31 }
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/named-load.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698