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

Side by Side Diff: test/mjsunit/regress/regress-inline-constant-load.js

Issue 534093003: Fix loading non-configurable non-writable value from a constant with mismatching type feedback (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('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 2014 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 // Flags: --allow-natives-syntax
6
7 var o1 = {};
8 var o2 = {};
9
10 function foo(x) {
11 return x.bar;
12 }
13
14 Object.defineProperty(o1, "bar", {value:200});
15 foo(o1);
16 foo(o1);
17
18 function f(b) {
19 var o = o2;
20 if (b) { return foo(o) }
21 }
22
23 f(false);
24 %OptimizeFunctionOnNextCall(f);
25 assertEquals(undefined, f(false));
26 Object.defineProperty(o2, "bar", {value: 100});
27 assertEquals(100, f(true));
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698