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

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

Issue 3586002: Backport r5553 "Do not invoke indexed interceptor getters for negative indice... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.2/
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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 Object* value = args[2]; 1016 Object* value = args[2];
1017 ASSERT(recv->HasNamedInterceptor()); 1017 ASSERT(recv->HasNamedInterceptor());
1018 PropertyAttributes attr = NONE; 1018 PropertyAttributes attr = NONE;
1019 Object* result = recv->SetPropertyWithInterceptor(name, value, attr); 1019 Object* result = recv->SetPropertyWithInterceptor(name, value, attr);
1020 return result; 1020 return result;
1021 } 1021 }
1022 1022
1023 1023
1024 Object* KeyedLoadPropertyWithInterceptor(Arguments args) { 1024 Object* KeyedLoadPropertyWithInterceptor(Arguments args) {
1025 JSObject* receiver = JSObject::cast(args[0]); 1025 JSObject* receiver = JSObject::cast(args[0]);
1026 ASSERT(Smi::cast(args[1])->value() >= 0);
1026 uint32_t index = Smi::cast(args[1])->value(); 1027 uint32_t index = Smi::cast(args[1])->value();
1027 return receiver->GetElementWithInterceptor(receiver, index); 1028 return receiver->GetElementWithInterceptor(receiver, index);
1028 } 1029 }
1029 1030
1030 1031
1031 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) { 1032 Object* StubCompiler::CompileCallInitialize(Code::Flags flags) {
1032 HandleScope scope; 1033 HandleScope scope;
1033 int argc = Code::ExtractArgumentsCountFromFlags(flags); 1034 int argc = Code::ExtractArgumentsCountFromFlags(flags);
1034 Code::Kind kind = Code::ExtractKindFromFlags(flags); 1035 Code::Kind kind = Code::ExtractKindFromFlags(flags);
1035 if (kind == Code::CALL_IC) { 1036 if (kind == Code::CALL_IC) {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 expected_receiver_type_ = 1371 expected_receiver_type_ =
1371 FunctionTemplateInfo::cast(signature->receiver()); 1372 FunctionTemplateInfo::cast(signature->receiver());
1372 } 1373 }
1373 } 1374 }
1374 1375
1375 is_simple_api_call_ = true; 1376 is_simple_api_call_ = true;
1376 } 1377 }
1377 1378
1378 1379
1379 } } // namespace v8::internal 1380 } } // 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