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

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

Issue 933913002: Fix representation for CompareIC in JSGenericLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Smash bounds and workaround. Created 5 years, 10 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/mjsunit.status ('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 // Flags: --allow-natives-syntax --expose-gc
6
7 function f(x) {
8 // TurboFan will hoist the CompareIC for x === 'some_string' and spill it.
9 if (x === 'some_other_string_1' || x === 'some_string') {
10 gc();
11 }
12 if (x === 'some_other_string_2' || x === 'some_string') {
13 gc();
14 }
15 // TurboFan will hoist the CompareIC for x === 1.4 and spill it.
16 if (x === 1.7 || x === 1.4) {
17 gc();
18 }
19 if (x === 1.9 || x === 1.4) {
20 gc();
21 }
22 }
23
24 %OptimizeFunctionOnNextCall(f);
25
26 f('some_other_string_1');
27 f(1.7);
OLDNEW
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698