Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 9bab2e1cc463ee99329379c34192d75f834def07..7431c5067eadea95c6b50f9bc7977b96f3cdbf30 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -21866,7 +21866,9 @@ namespace { |
const char* kMegamorphicTestProgram = |
"function CreateClass(name) {\n" |
" var src = \n" |
- " ` function ${name}() { this.a = 0; };` +\n" |
+ // Disable constant tracking of "a" field by assigning different Smi values |
+ // twice to ease megamorphic probes counting. |
+ " ` function ${name}() { this.a = 0; this.a = 1; };` +\n" |
" ` ${name}.prototype.foo = function() {};` +\n" |
" ` ${name};\\n`;\n" |
" return (0, eval)(src);\n" |