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

Side by Side Diff: test/mjsunit/osr-elements-kind.js

Issue 1882833006: Revert of Immediately cache compiled scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/cctest/test-api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 // Flags: --allow-natives-syntax --expose-gc 28 // Flags: --allow-natives-syntax --expose-gc
29 29
30 // Limit the number of stress runs to reduce polymorphism it defeats some of the 30 // Limit the number of stress runs to reduce polymorphism it defeats some of the
31 // assumptions made about how elements transitions work because transition stubs 31 // assumptions made about how elements transitions work because transition stubs
32 // end up going generic. 32 // end up going generic.
33 // Flags: --stress-runs=1 33 // Flags: --stress-runs=2
34 34
35 var elements_kind = { 35 var elements_kind = {
36 fast_smi_only : 'fast smi only elements', 36 fast_smi_only : 'fast smi only elements',
37 fast : 'fast elements', 37 fast : 'fast elements',
38 fast_double : 'fast double elements', 38 fast_double : 'fast double elements',
39 dictionary : 'dictionary elements', 39 dictionary : 'dictionary elements',
40 fixed_int32 : 'fixed int8 elements', 40 fixed_int32 : 'fixed int8 elements',
41 fixed_uint8 : 'fixed uint8 elements', 41 fixed_uint8 : 'fixed uint8 elements',
42 fixed_int16 : 'fixed int16 elements', 42 fixed_int16 : 'fixed int16 elements',
43 fixed_uint16 : 'fixed uint16 elements', 43 fixed_uint16 : 'fixed uint16 elements',
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 convert_mixed(construct_doubles(), "three", elements_kind.fast); 133 convert_mixed(construct_doubles(), "three", elements_kind.fast);
134 134
135 smis = construct_smis(); 135 smis = construct_smis();
136 doubles = construct_doubles(); 136 doubles = construct_doubles();
137 convert_mixed(smis, 1, elements_kind.fast); 137 convert_mixed(smis, 1, elements_kind.fast);
138 convert_mixed(doubles, 1, elements_kind.fast); 138 convert_mixed(doubles, 1, elements_kind.fast);
139 assertTrue(%HaveSameMap(smis, doubles)); 139 assertTrue(%HaveSameMap(smis, doubles));
140 140
141 // Throw away type information in the ICs for next stress run. 141 // Throw away type information in the ICs for next stress run.
142 gc(); 142 gc();
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698