| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 5961294afa38817e32abc341fdfba59628778dac..968a28e46267de26e5aae6f991821178555503fa 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -161,6 +161,7 @@ static void PushInterceptorArguments(MacroAssembler* masm,
|
| __ push(holder);
|
| __ push(name);
|
| InterceptorInfo* interceptor = holder_obj->GetNamedInterceptor();
|
| + ASSERT(!Heap::InNewSpace(interceptor));
|
| __ mov(receiver, Immediate(Handle<Object>(interceptor)));
|
| __ push(receiver);
|
| __ push(FieldOperand(receiver, InterceptorInfo::kDataOffset));
|
| @@ -347,19 +348,6 @@ static void CompileLoadInterceptor(Compiler* compiler,
|
| }
|
|
|
|
|
| -static void LookupPostInterceptor(JSObject* holder,
|
| - String* name,
|
| - LookupResult* lookup) {
|
| - holder->LocalLookupRealNamedProperty(name, lookup);
|
| - if (lookup->IsNotFound()) {
|
| - Object* proto = holder->GetPrototype();
|
| - if (proto != Heap::null_value()) {
|
| - proto->Lookup(name, lookup);
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| class LoadInterceptorCompiler BASE_EMBEDDED {
|
| public:
|
| explicit LoadInterceptorCompiler(Register name) : name_(name) {}
|
| @@ -559,7 +547,6 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
|
|
|
| // Jump to the cached code (tail call).
|
| - ASSERT(function->is_compiled());
|
| Handle<Code> code(function->code());
|
| ParameterCount expected(function->shared()->formal_parameter_count());
|
| __ InvokeCode(code, expected, arguments_,
|
| @@ -1151,6 +1138,7 @@ Object* CallStubCompiler::CompileCallInterceptor(Object* object,
|
| }
|
|
|
| // Invoke the function.
|
| + // TODO(antonm): check if this move is necessary.
|
| __ mov(edi, eax);
|
| __ InvokeFunction(edi, arguments(), JUMP_FUNCTION);
|
|
|
|
|