Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 1aa8ec99d1932dbeff9c1396f8f16e47d6967bbc..c655e7b4ab26a1381d9c7336e9af701cb20474d0 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -21865,7 +21865,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" |