Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: src/ic/ic.cc

Issue 1451273002: [turbofan] Move JSCallFunction specialization to JSCallReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 failures. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index c86b932d83c414f3dd7ee4ce35b2fe4ac37c52c0..964f1d876d5ec9671e7f1e37a48e6f37f33e114a 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -2310,6 +2310,12 @@ void CallIC::HandleMiss(Handle<Object> function) {
if (array_function.is_identical_to(js_function)) {
// Alter the slot.
nexus->ConfigureMonomorphicArray();
+ } else if (js_function->context()->native_context() !=
+ *isolate()->native_context()) {
+ // Don't collect cross-native context feedback for the CallIC.
+ // TODO(bmeurer): We should collect the SharedFunctionInfo as
+ // feedback in this case instead.
+ nexus->ConfigureMegamorphic();
} else {
nexus->ConfigureMonomorphic(js_function);
}
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698