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

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

Issue 1211453002: Reland "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix alwaysopt Created 5 years, 6 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/cctest/test-heap.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
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 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: --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 6
7 function Migrator(o) { 7 function Migrator(o) {
8 return o.foo; 8 return o.foo;
9 } 9 }
10 function Loader(o) { 10 function Loader(o) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 for (var i = 0; i < 3; i++) Loader(second_smi_array); 47 for (var i = 0; i < 3; i++) Loader(second_smi_array);
48 %OptimizeFunctionOnNextCall(Loader); 48 %OptimizeFunctionOnNextCall(Loader);
49 assertEquals("string", Loader(second_object_array)); 49 assertEquals("string", Loader(second_object_array));
50 50
51 // Any of the following checks will also fail: 51 // Any of the following checks will also fail:
52 assertTrue(%HasFastObjectElements(second_object_array)); 52 assertTrue(%HasFastObjectElements(second_object_array));
53 assertFalse(%HasFastSmiElements(second_object_array)); 53 assertFalse(%HasFastSmiElements(second_object_array));
54 assertTrue(%HaveSameMap(first_object_array, second_object_array)); 54 assertTrue(%HaveSameMap(first_object_array, second_object_array));
55 assertFalse(%HaveSameMap(first_smi_array, second_object_array)); 55 assertFalse(%HaveSameMap(first_smi_array, second_object_array));
56
57 %ClearFunctionTypeFeedback(Loader);
58 %ClearFunctionTypeFeedback(Migrator);
OLDNEW
« no previous file with comments | « test/cctest/test-heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698