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

Side by Side Diff: test/mjsunit/fixed-context-shapes-when-recompiling.js

Issue 2464453002: [test] Fix a few flag configurations to make fuzzer happy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 1 month 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 | « no previous file | test/mjsunit/lazy-inner-functions.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --min-preparse-length 1 --allow-natives-syntax --lazy-inner-functions 5 // Flags: --min-preparse-length=1 --allow-natives-syntax --lazy-inner-functions
6 6
7 // Test that the information on which variables to allocate in context doesn't 7 // Test that the information on which variables to allocate in context doesn't
8 // change when recompiling. 8 // change when recompiling.
9 9
10 (function TestVarInInnerFunction() { 10 (function TestVarInInnerFunction() {
11 // Introduce variables which would potentially be context allocated, depending 11 // Introduce variables which would potentially be context allocated, depending
12 // on whether an inner function refers to them or not. 12 // on whether an inner function refers to them or not.
13 var a = 1; 13 var a = 1;
14 var b = 2; 14 var b = 2;
15 var c = 3; 15 var c = 3;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 if (i == 1) { 912 if (i == 1) {
913 %OptimizeOsr(); 913 %OptimizeOsr();
914 } 914 }
915 var a = 0; 915 var a = 0;
916 function inner() { 916 function inner() {
917 return a; 917 return a;
918 const {b: {a}, c} = {b: {a: 1}, c: 2}; 918 const {b: {a}, c} = {b: {a: 1}, c: 2};
919 } 919 }
920 } 920 }
921 })(); 921 })();
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/lazy-inner-functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698