| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index b6f6c5c31c79147bfdf48e36b555c516a27917ec..6c840ebaa42bdc435cb138b5bfdf72dc482e6ddf 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -29,7 +29,6 @@
|
|
|
| #if V8_TARGET_ARCH_X64
|
|
|
| -#include "arguments.h"
|
| #include "ic-inl.h"
|
| #include "codegen.h"
|
| #include "stub-cache.h"
|
| @@ -367,11 +366,6 @@ static void PushInterceptorArguments(MacroAssembler* masm,
|
| Register holder,
|
| Register name,
|
| Handle<JSObject> holder_obj) {
|
| - STATIC_ASSERT(StubCache::kInterceptorArgsNameIndex == 0);
|
| - STATIC_ASSERT(StubCache::kInterceptorArgsInfoIndex == 1);
|
| - STATIC_ASSERT(StubCache::kInterceptorArgsThisIndex == 2);
|
| - STATIC_ASSERT(StubCache::kInterceptorArgsHolderIndex == 3);
|
| - STATIC_ASSERT(StubCache::kInterceptorArgsLength == 4);
|
| __ push(name);
|
| Handle<InterceptorInfo> interceptor(holder_obj->GetNamedInterceptor());
|
| ASSERT(!masm->isolate()->heap()->InNewSpace(*interceptor));
|
| @@ -379,6 +373,8 @@ static void PushInterceptorArguments(MacroAssembler* masm,
|
| __ push(kScratchRegister);
|
| __ push(receiver);
|
| __ push(holder);
|
| + __ push(FieldOperand(kScratchRegister, InterceptorInfo::kDataOffset));
|
| + __ PushAddress(ExternalReference::isolate_address(masm->isolate()));
|
| }
|
|
|
|
|
| @@ -393,7 +389,7 @@ static void CompileCallLoadPropertyWithInterceptor(
|
| ExternalReference ref =
|
| ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorOnly),
|
| masm->isolate());
|
| - __ Set(rax, StubCache::kInterceptorArgsLength);
|
| + __ Set(rax, 6);
|
| __ LoadAddress(rbx, ref);
|
|
|
| CEntryStub stub(1);
|
| @@ -723,7 +719,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| __ CallExternalReference(
|
| ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorForCall),
|
| masm->isolate()),
|
| - StubCache::kInterceptorArgsLength);
|
| + 6);
|
|
|
| // Restore the name_ register.
|
| __ pop(name_);
|
| @@ -1326,27 +1322,19 @@ void BaseLoadStubCompiler::GenerateLoadCallback(
|
| ASSERT(!scratch4().is(reg));
|
| __ PopReturnAddressTo(scratch4());
|
|
|
| - STATIC_ASSERT(PropertyCallbackArguments::kThisIndex == 0);
|
| - STATIC_ASSERT(PropertyCallbackArguments::kDataIndex == -1);
|
| - STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == -2);
|
| - STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == -3);
|
| - STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == -4);
|
| - STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == -5);
|
| __ push(receiver()); // receiver
|
| + __ push(reg); // holder
|
| if (heap()->InNewSpace(callback->data())) {
|
| - ASSERT(!scratch1().is(reg));
|
| __ Move(scratch1(), callback);
|
| __ push(FieldOperand(scratch1(),
|
| ExecutableAccessorInfo::kDataOffset)); // data
|
| } else {
|
| __ Push(Handle<Object>(callback->data(), isolate()));
|
| }
|
| - ASSERT(!kScratchRegister.is(reg));
|
| __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex);
|
| __ push(kScratchRegister); // return value
|
| __ push(kScratchRegister); // return value default
|
| __ PushAddress(ExternalReference::isolate_address(isolate()));
|
| - __ push(reg); // holder
|
| __ push(name()); // name
|
| // Save a pointer to where we pushed the arguments pointer. This will be
|
| // passed as the const ExecutableAccessorInfo& to the C++ callback.
|
| @@ -1390,7 +1378,7 @@ void BaseLoadStubCompiler::GenerateLoadCallback(
|
| thunk_address,
|
| getter_arg,
|
| kStackSpace,
|
| - 6);
|
| + 5);
|
| }
|
|
|
|
|
| @@ -1489,7 +1477,7 @@ void BaseLoadStubCompiler::GenerateLoadInterceptor(
|
|
|
| ExternalReference ref = ExternalReference(
|
| IC_Utility(IC::kLoadPropertyWithInterceptorForLoad), isolate());
|
| - __ TailCallExternalReference(ref, StubCache::kInterceptorArgsLength, 1);
|
| + __ TailCallExternalReference(ref, 6, 1);
|
| }
|
| }
|
|
|
|
|