| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 712 } |
| 713 RETURN_IF_SCHEDULED_EXCEPTION(); | 713 RETURN_IF_SCHEDULED_EXCEPTION(); |
| 714 return *value; | 714 return *value; |
| 715 } | 715 } |
| 716 | 716 |
| 717 | 717 |
| 718 Object* LoadInterceptorProperty(Arguments args) { | 718 Object* LoadInterceptorProperty(Arguments args) { |
| 719 JSObject* recv = JSObject::cast(args[0]); | 719 JSObject* recv = JSObject::cast(args[0]); |
| 720 JSObject* holder = JSObject::cast(args[1]); | 720 JSObject* holder = JSObject::cast(args[1]); |
| 721 String* name = String::cast(args[2]); | 721 String* name = String::cast(args[2]); |
| 722 Smi* lookup_hint = Smi::cast(args[3]); |
| 722 ASSERT(holder->HasNamedInterceptor()); | 723 ASSERT(holder->HasNamedInterceptor()); |
| 723 PropertyAttributes attr = NONE; | 724 PropertyAttributes attr = NONE; |
| 724 Object* result = holder->GetPropertyWithInterceptor(recv, name, &attr); | |
| 725 | 725 |
| 726 Object* result = holder->GetInterceptorPropertyWithLookupHint( |
| 727 recv, lookup_hint, name, &attr); |
| 726 if (result->IsFailure()) return result; | 728 if (result->IsFailure()) return result; |
| 727 | 729 |
| 728 // If the property is present, return it. | 730 // If the property is present, return it. |
| 729 if (attr != ABSENT) return result; | 731 if (attr != ABSENT) return result; |
| 730 | 732 |
| 731 // If the top frame is an internal frame, this is really a call | 733 // If the top frame is an internal frame, this is really a call |
| 732 // IC. In this case, we simply return the undefined result which | 734 // IC. In this case, we simply return the undefined result which |
| 733 // will lead to an exception when trying to invoke the result as a | 735 // will lead to an exception when trying to invoke the result as a |
| 734 // function. | 736 // function. |
| 735 StackFrameIterator it; | 737 StackFrameIterator it; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 int argc = arguments_.immediate(); | 927 int argc = arguments_.immediate(); |
| 926 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, | 928 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, |
| 927 type, | 929 type, |
| 928 NOT_IN_LOOP, | 930 NOT_IN_LOOP, |
| 929 argc); | 931 argc); |
| 930 return GetCodeWithFlags(flags, name); | 932 return GetCodeWithFlags(flags, name); |
| 931 } | 933 } |
| 932 | 934 |
| 933 | 935 |
| 934 } } // namespace v8::internal | 936 } } // namespace v8::internal |
| OLD | NEW |