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

Side by Side Diff: test/mjsunit/regress/regress-362128.js

Issue 226363007: Fix result of LCodeGen::DoWrapReceiver for strict functions and builtins. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comment Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('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 // Flags: --allow-natives-syntax
5
6 function genM() {
7 "use strict";
8 return function () {
9 return this.field;
10 };
11 }
12
13 function genR() {
14 var x = {
15 field: 10
16 }
17 return x;
18 }
19
20 method = {};
21 receiver = {};
22
23 method = genM("A");
24 receiver = genR("A");
25
26 var foo = (function () {
27 return function suspect (name) {
28 "use strict";
29 return method.apply(receiver, arguments);
30 }
31 })();
32
33 foo("a", "b", "c");
34 foo("a", "b", "c");
35 foo("a", "b", "c");
36 %OptimizeFunctionOnNextCall(foo);
37 foo("a", "b", "c");
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698