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

Unified Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/code-stubs-arm.cc
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
index c9207254773cff4b52bee2f226279dae41ddfc6d..53e5c648632ed9194c02f30437bcd788c291e5ed 100644
--- a/src/arm/code-stubs-arm.cc
+++ b/src/arm/code-stubs-arm.cc
@@ -2559,6 +2559,14 @@ void CallICStub::Generate(MacroAssembler* masm) {
__ cmp(r1, r4);
__ b(eq, &miss);
+ // Make sure the function belongs to the same native context (which implies
+ // the same global object).
+ __ ldr(r4, FieldMemOperand(r1, JSFunction::kContextOffset));
+ __ ldr(r4, ContextOperand(r4, Context::GLOBAL_OBJECT_INDEX));
+ __ ldr(ip, GlobalObjectOperand());
+ __ cmp(r4, ip);
+ __ b(ne, &miss);
+
// Update stats.
__ ldr(r4, FieldMemOperand(r2, with_types_offset));
__ add(r4, r4, Operand(Smi::FromInt(1)));
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698