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

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

Issue 118302: Experimental revert of revisions 2093, 2094, 2099, and... (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
« no previous file with comments | « src/stub-cache.h ('k') | test/cctest/test-api.cc » ('j') | 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]);
723 ASSERT(holder->HasNamedInterceptor()); 722 ASSERT(holder->HasNamedInterceptor());
724 PropertyAttributes attr = NONE; 723 PropertyAttributes attr = NONE;
724 Object* result = holder->GetPropertyWithInterceptor(recv, name, &attr);
725 725
726 Object* result = holder->GetInterceptorPropertyWithLookupHint(
727 recv, lookup_hint, name, &attr);
728 if (result->IsFailure()) return result; 726 if (result->IsFailure()) return result;
729 727
730 // If the property is present, return it. 728 // If the property is present, return it.
731 if (attr != ABSENT) return result; 729 if (attr != ABSENT) return result;
732 730
733 // If the top frame is an internal frame, this is really a call 731 // If the top frame is an internal frame, this is really a call
734 // IC. In this case, we simply return the undefined result which 732 // IC. In this case, we simply return the undefined result which
735 // will lead to an exception when trying to invoke the result as a 733 // will lead to an exception when trying to invoke the result as a
736 // function. 734 // function.
737 StackFrameIterator it; 735 StackFrameIterator it;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 int argc = arguments_.immediate(); 925 int argc = arguments_.immediate();
928 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, 926 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC,
929 type, 927 type,
930 NOT_IN_LOOP, 928 NOT_IN_LOOP,
931 argc); 929 argc);
932 return GetCodeWithFlags(flags, name); 930 return GetCodeWithFlags(flags, name);
933 } 931 }
934 932
935 933
936 } } // namespace v8::internal 934 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698