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

Side by Side Diff: test/mjsunit/call-counts.js

Issue 1381073003: Disable vector store ICs for mjsunit/call-counts because slot indices change when --vector-store… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | 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 --noalways-opt 5 // Flags: --allow-natives-syntax --noalways-opt --no-vector-stores
Jakob Kummerow 2015/10/01 17:27:11 Please add a comment summarizing why this flags is
6 6
7 // Locations in the type feedback vector where call counts are maintained for 7 // Locations in the type feedback vector where call counts are maintained for
8 // the two calls made from bar(); 8 // the two calls made from bar();
9 9
10 (function() { 10 (function() {
11 const kFooCallExtraIndex = 5; 11 const kFooCallExtraIndex = 5;
12 const kArrayCallExtraIndex = 7; 12 const kArrayCallExtraIndex = 7;
13 13
14 function GetCallCount(func, slot) { 14 function GetCallCount(func, slot) {
15 var vector = %GetTypeFeedbackVector(func); 15 var vector = %GetTypeFeedbackVector(func);
(...skipping 18 matching lines...) Expand all
34 } 34 }
35 35
36 var a = [1, 2, 3]; 36 var a = [1, 2, 3];
37 bar(a); 37 bar(a);
38 assertEquals(10, GetCallCount(bar, kFooCallExtraIndex)); 38 assertEquals(10, GetCallCount(bar, kFooCallExtraIndex));
39 assertEquals(5, GetCallCount(bar, kArrayCallExtraIndex)); 39 assertEquals(5, GetCallCount(bar, kArrayCallExtraIndex));
40 40
41 %OptimizeFunctionOnNextCall(bar); 41 %OptimizeFunctionOnNextCall(bar);
42 bar(a); 42 bar(a);
43 })(); 43 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698