| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 return_value_operand, | 640 return_value_operand, |
| 641 restore_context ? | 641 restore_context ? |
| 642 &context_restore_operand : NULL); | 642 &context_restore_operand : NULL); |
| 643 } | 643 } |
| 644 | 644 |
| 645 | 645 |
| 646 class CallInterceptorCompiler BASE_EMBEDDED { | 646 class CallInterceptorCompiler BASE_EMBEDDED { |
| 647 public: | 647 public: |
| 648 CallInterceptorCompiler(CallStubCompiler* stub_compiler, | 648 CallInterceptorCompiler(CallStubCompiler* stub_compiler, |
| 649 const ParameterCount& arguments, | 649 const ParameterCount& arguments, |
| 650 Register name, | 650 Register name) |
| 651 ExtraICState extra_state) | |
| 652 : stub_compiler_(stub_compiler), | 651 : stub_compiler_(stub_compiler), |
| 653 arguments_(arguments), | 652 arguments_(arguments), |
| 654 name_(name) {} | 653 name_(name) {} |
| 655 | 654 |
| 656 void Compile(MacroAssembler* masm, | 655 void Compile(MacroAssembler* masm, |
| 657 Handle<JSObject> object, | 656 Handle<JSObject> object, |
| 658 Handle<JSObject> holder, | 657 Handle<JSObject> holder, |
| 659 Handle<Name> name, | 658 Handle<Name> name, |
| 660 LookupResult* lookup, | 659 LookupResult* lookup, |
| 661 Register receiver, | 660 Register receiver, |
| (...skipping 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2582 | 2581 |
| 2583 // Get the number of arguments. | 2582 // Get the number of arguments. |
| 2584 const int argc = arguments().immediate(); | 2583 const int argc = arguments().immediate(); |
| 2585 | 2584 |
| 2586 LookupResult lookup(isolate()); | 2585 LookupResult lookup(isolate()); |
| 2587 LookupPostInterceptor(holder, name, &lookup); | 2586 LookupPostInterceptor(holder, name, &lookup); |
| 2588 | 2587 |
| 2589 // Get the receiver from the stack. | 2588 // Get the receiver from the stack. |
| 2590 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); | 2589 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); |
| 2591 | 2590 |
| 2592 CallInterceptorCompiler compiler(this, arguments(), ecx, extra_state()); | 2591 CallInterceptorCompiler compiler(this, arguments(), ecx); |
| 2593 compiler.Compile(masm(), object, holder, name, &lookup, edx, ebx, edi, eax, | 2592 compiler.Compile(masm(), object, holder, name, &lookup, edx, ebx, edi, eax, |
| 2594 &miss); | 2593 &miss); |
| 2595 | 2594 |
| 2596 // Restore receiver. | 2595 // Restore receiver. |
| 2597 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); | 2596 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); |
| 2598 | 2597 |
| 2599 GenerateJumpFunction(object, eax, &miss); | 2598 GenerateJumpFunction(object, eax, &miss); |
| 2600 | 2599 |
| 2601 HandlerFrontendFooter(&miss); | 2600 HandlerFrontendFooter(&miss); |
| 2602 | 2601 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2992 // ----------------------------------- | 2991 // ----------------------------------- |
| 2993 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2992 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 2994 } | 2993 } |
| 2995 | 2994 |
| 2996 | 2995 |
| 2997 #undef __ | 2996 #undef __ |
| 2998 | 2997 |
| 2999 } } // namespace v8::internal | 2998 } } // namespace v8::internal |
| 3000 | 2999 |
| 3001 #endif // V8_TARGET_ARCH_IA32 | 3000 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |