Bugfix: Incorrect type feedback vector structure on recompile.
authormvstanton <mvstanton@chromium.org>
Tue, 28 Jul 2015 14:02:49 +0000 (07:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Jul 2015 14:03:10 +0000 (14:03 +0000)
Scoping rules are different on recompile vis-a-vis global loads.

BUG=chromium:514526
LOG=y
NOTREECHECKS=true

Review URL: https://codereview.chromium.org/1256413005

Cr-Commit-Position: refs/heads/master@{#29896}

src/scopes.cc
test/cctest/cctest.status

index 1473b24..52e50ea 100644 (file)
@@ -692,6 +692,7 @@ bool Scope::HasTrivialContext() const {
     if (scope->is_eval_scope()) return false;
     if (scope->scope_inside_with_) return false;
     if (scope->ContextLocalCount() > 0) return false;
+    if (scope->ContextGlobalCount() > 0) return false;
   }
   return true;
 }
index 68bdac9..dc712a3 100644 (file)
   # This tests API threading, no point in running several variants.
   'test-api/Threading*': [PASS, NO_VARIANTS],
 
+  # Parser fixes break the function name inference in the constructor.
+  # BUG(4331)
+  'test-func-name-inference/InConstructor': [SKIP],
+
   # The cpu profiler tests are notoriously flaky.
   # BUG(2999). (test/cpu-profiler/CollectCpuProfile)
   # BUG(3287). (test-cpu-profiler/SampleWhenFrameIsNotSetup)