Chromium Code Reviews

Unified Diff: test/message/type-profile/collect-type-profile.js

Issue 2757993002: [runtime] Add function for printing type profile. (Closed)
Patch Set: Delete unused variable. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: test/message/type-profile/collect-type-profile.js
diff --git a/test/message/type-profile/collect-type-profile.js b/test/message/type-profile/collect-type-profile.js
index 45572af20c3d3ee3988942804d572871b87069d1..e08d6caf1cc1a4f532e247da5934e61cf0e2a128 100644
--- a/test/message/type-profile/collect-type-profile.js
+++ b/test/message/type-profile/collect-type-profile.js
@@ -2,22 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --type-profile --turbo
+// Flags: --type-profile --turbo --allow-natives-syntax
function test(param) {
var my_var1 = param;
var my_var2 = 17;
}
+%PrintTypeProfile(test);
+
test({});
test(123);
test('hello');
test(123);
+%PrintTypeProfile(test);
+
test(undefined);
test('hello');
test({x: 12});
test({x: 12});
+%PrintTypeProfile(test);
+
class MyClass {
constructor() {}
}

Powered by Google App Engine