Reviewers: Benedikt Meurer,

Message:
PTAL, thx!

Description:
Bugfix: Incorrect type feedback vector structure on recompile.

Scoping rules are different on recompile vis-a-vis global loads.

BUG=514526

Please review this at https://codereview.chromium.org/1256413005/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+5, -0 lines):
  M src/scopes.cc
  M test/cctest/cctest.status


Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 1473b2471f59ebbd87acf6cebdbd5f3c114cfc42..52e50eaee61d11348f9ef6e355b3fd4d7499900c 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -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: test/cctest/cctest.status
diff --git a/test/cctest/cctest.status b/test/cctest/cctest.status
index 68bdac9c5d6f1112ee2164aa1694d90c2fe791ed..dc712a3c55b8fdfefcb868b5613b9229d7ba0508 100644
--- a/test/cctest/cctest.status
+++ b/test/cctest/cctest.status
@@ -71,6 +71,10 @@
   # 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)


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to