Reviewers: m.m.capewell, jochen,

Message:
PTAL

Description:
A64: Load correct receiver in Generate_FunctionCall.

TEST=mjsunit/call

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

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+1, -0 lines):
  M src/a64/builtins-a64.cc


Index: src/a64/builtins-a64.cc
diff --git a/src/a64/builtins-a64.cc b/src/a64/builtins-a64.cc
index 403bb5fa8e82d487815d607580a830668adbb6ff..ee6654ab758fd22b31c29bfbb686bf4c3795693e 100644
--- a/src/a64/builtins-a64.cc
+++ b/src/a64/builtins-a64.cc
@@ -1080,6 +1080,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) {

     __ Bind(&use_global_receiver);
     __ Ldr(x2, GlobalObjectMemOperand());
+    __ Ldr(x2, FieldMemOperand(x2, GlobalObject::kGlobalReceiverOffset));

     __ Bind(&patch_receiver);
     __ Sub(x10, x0, 1);


--
--
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/groups/opt_out.

Reply via email to