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

Side by Side Diff: src/stub-cache.cc

Issue 118118: Store fast property index in stubs generated for interceptor loads (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« src/objects-inl.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« src/objects-inl.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698