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

Unified Diff: src/a64/stub-cache-a64.cc

Issue 157543002: A64: Synchronize with r18581. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months 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/a64/simulator-a64.cc ('k') | src/allocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/stub-cache-a64.cc
diff --git a/src/a64/stub-cache-a64.cc b/src/a64/stub-cache-a64.cc
index 243c7fbbca5ccdf38c7b7c6652b570fad42efb2d..0cc37f3ed7c599c56dcba18dec74e8a575cb536a 100644
--- a/src/a64/stub-cache-a64.cc
+++ b/src/a64/stub-cache-a64.cc
@@ -2382,12 +2382,12 @@ void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) {
}
-void CallStubCompiler::PatchGlobalProxy(Handle<Object> object) {
- // TODO(all): What is x0 here? Is the use of x3 significant?
+void CallStubCompiler::PatchImplicitReceiver(Handle<Object> object) {
+ // TODO(all): Is the use of x3 significant?
if (object->IsGlobalObject()) {
const int argc = arguments().immediate();
const int receiver_offset = argc * kPointerSize;
- __ Ldr(x3, FieldMemOperand(x0, GlobalObject::kGlobalReceiverOffset));
+ __ LoadRoot(x3, Heap::kUndefinedValueRootIndex);
__ Poke(x3, receiver_offset);
}
}
@@ -2485,7 +2485,7 @@ void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
ASSERT(function.Is(x1));
// Check that the function really is a function.
GenerateFunctionCheck(function, x3, miss);
- PatchGlobalProxy(object);
+ PatchImplicitReceiver(object);
// Invoke the function.
__ InvokeFunction(function, arguments(), JUMP_FUNCTION,
« no previous file with comments | « src/a64/simulator-a64.cc ('k') | src/allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698