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

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

Issue 3587002: Backport r5553 "Do not invoke indexed interceptor getters for negative indice... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.1/
Patch Set: Created 10 years, 2 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/ia32/ic-ia32.cc ('k') | src/version.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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 Object* value = args[2]; 918 Object* value = args[2];
919 ASSERT(recv->HasNamedInterceptor()); 919 ASSERT(recv->HasNamedInterceptor());
920 PropertyAttributes attr = NONE; 920 PropertyAttributes attr = NONE;
921 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); 921 Object* result = recv->SetPropertyWithInterceptor(name, value, attr);
922 return result; 922 return result;
923 } 923 }
924 924
925 925
926 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { 926 Object* KeyedLoadPropertyWithInterceptor(Arguments args) {
927 JSObject* receiver = JSObject::cast(args[0]); 927 JSObject* receiver = JSObject::cast(args[0]);
928 ASSERT(Smi::cast(args[1])->value() >= 0);
928 uint32_t index = Smi::cast(args[1])->value(); 929 uint32_t index = Smi::cast(args[1])->value();
929 return receiver->GetElementWithInterceptor(receiver, index); 930 return receiver->GetElementWithInterceptor(receiver, index);
930 } 931 }
931 932
932 933
933 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { 934 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) {
934 HandleScope scope; 935 HandleScope scope;
935 int argc = Code::ExtractArgumentsCountFromFlags(flags); 936 int argc = Code::ExtractArgumentsCountFromFlags(flags);
936 CallIC::GenerateInitialize(masm(), argc); 937 CallIC::GenerateInitialize(masm(), argc);
937 Object* result = GetCodeWithFlags(flags, "CompileCallInitialize"); 938 Object* result = GetCodeWithFlags(flags, "CompileCallInitialize");
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 if (!result->IsFailure()) { 1125 if (!result->IsFailure()) {
1125 Code* code = Code::cast(result); 1126 Code* code = Code::cast(result);
1126 USE(code); 1127 USE(code);
1127 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub")); 1128 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub"));
1128 } 1129 }
1129 return result; 1130 return result;
1130 } 1131 }
1131 1132
1132 1133
1133 } } // namespace v8::internal 1134 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698