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

Side by Side Diff: test/inspector/type-profile/collect-type-profile.js

Issue 2749673003: Revert of Collect type profile for DevTools. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Flags: --type-profile --turbo
6
7 const expression = `
8 function test(param) {
9 var my_var1 = param;
10 var my_var2 = 17;
11 }
12
13 test({});
14 test(123);
15 test('hello');
16 test(123);
17 test(undefined);
18 test('hello');
19 test({x: 12});
20 test({x: 12});
21
22 class MyClass {
23 constructor() {}
24 }
25
26
27 function testConstructorNames(param) {
28 var my_var = param;
29 }
30
31 testConstructorNames(new MyClass());
32 testConstructorNames({});
33 testConstructorNames(2);
34 `;
35
36
37 Protocol.Runtime.evaluate({ expression: expression })
38 .then(function() {InspectorTest.completeTest();});
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | test/inspector/type-profile/collect-type-profile-array-splice.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698