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

Side by Side Diff: src/ic.cc

Issue 10796059: Merged r12088 into 3.10 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.10
Patch Set: Created 8 years, 5 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 if (!holder.is_identical_to(receiver)) return; 976 if (!holder.is_identical_to(receiver)) return;
977 code = isolate()->stub_cache()->ComputeLoadNormal(); 977 code = isolate()->stub_cache()->ComputeLoadNormal();
978 } 978 }
979 break; 979 break;
980 case CALLBACKS: { 980 case CALLBACKS: {
981 Handle<Object> callback_object(lookup->GetCallbackObject()); 981 Handle<Object> callback_object(lookup->GetCallbackObject());
982 if (!callback_object->IsAccessorInfo()) return; 982 if (!callback_object->IsAccessorInfo()) return;
983 Handle<AccessorInfo> callback = 983 Handle<AccessorInfo> callback =
984 Handle<AccessorInfo>::cast(callback_object); 984 Handle<AccessorInfo>::cast(callback_object);
985 if (v8::ToCData<Address>(callback->getter()) == 0) return; 985 if (v8::ToCData<Address>(callback->getter()) == 0) return;
986 if (!receiver->HasFastProperties()) return;
986 code = isolate()->stub_cache()->ComputeLoadCallback( 987 code = isolate()->stub_cache()->ComputeLoadCallback(
987 name, receiver, holder, callback); 988 name, receiver, holder, callback);
988 break; 989 break;
989 } 990 }
990 case INTERCEPTOR: 991 case INTERCEPTOR:
991 ASSERT(HasInterceptorGetter(*holder)); 992 ASSERT(HasInterceptorGetter(*holder));
992 code = isolate()->stub_cache()->ComputeLoadInterceptor( 993 code = isolate()->stub_cache()->ComputeLoadInterceptor(
993 name, receiver, holder); 994 name, receiver, holder);
994 break; 995 break;
995 default: 996 default:
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 code = isolate()->stub_cache()->ComputeKeyedLoadConstant( 1240 code = isolate()->stub_cache()->ComputeKeyedLoadConstant(
1240 name, receiver, holder, constant); 1241 name, receiver, holder, constant);
1241 break; 1242 break;
1242 } 1243 }
1243 case CALLBACKS: { 1244 case CALLBACKS: {
1244 Handle<Object> callback_object(lookup->GetCallbackObject()); 1245 Handle<Object> callback_object(lookup->GetCallbackObject());
1245 if (!callback_object->IsAccessorInfo()) return; 1246 if (!callback_object->IsAccessorInfo()) return;
1246 Handle<AccessorInfo> callback = 1247 Handle<AccessorInfo> callback =
1247 Handle<AccessorInfo>::cast(callback_object); 1248 Handle<AccessorInfo>::cast(callback_object);
1248 if (v8::ToCData<Address>(callback->getter()) == 0) return; 1249 if (v8::ToCData<Address>(callback->getter()) == 0) return;
1250 if (!receiver->HasFastProperties()) return;
1249 code = isolate()->stub_cache()->ComputeKeyedLoadCallback( 1251 code = isolate()->stub_cache()->ComputeKeyedLoadCallback(
1250 name, receiver, holder, callback); 1252 name, receiver, holder, callback);
1251 break; 1253 break;
1252 } 1254 }
1253 case INTERCEPTOR: 1255 case INTERCEPTOR:
1254 ASSERT(HasInterceptorGetter(lookup->holder())); 1256 ASSERT(HasInterceptorGetter(lookup->holder()));
1255 code = isolate()->stub_cache()->ComputeKeyedLoadInterceptor( 1257 code = isolate()->stub_cache()->ComputeKeyedLoadInterceptor(
1256 name, receiver, holder); 1258 name, receiver, holder);
1257 break; 1259 break;
1258 default: 1260 default:
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 if (lookup->holder() != *receiver) return; 1455 if (lookup->holder() != *receiver) return;
1454 code = isolate()->stub_cache()->ComputeStoreNormal(strict_mode); 1456 code = isolate()->stub_cache()->ComputeStoreNormal(strict_mode);
1455 } 1457 }
1456 break; 1458 break;
1457 case CALLBACKS: { 1459 case CALLBACKS: {
1458 Handle<Object> callback_object(lookup->GetCallbackObject()); 1460 Handle<Object> callback_object(lookup->GetCallbackObject());
1459 if (!callback_object->IsAccessorInfo()) return; 1461 if (!callback_object->IsAccessorInfo()) return;
1460 Handle<AccessorInfo> callback = 1462 Handle<AccessorInfo> callback =
1461 Handle<AccessorInfo>::cast(callback_object); 1463 Handle<AccessorInfo>::cast(callback_object);
1462 if (v8::ToCData<Address>(callback->setter()) == 0) return; 1464 if (v8::ToCData<Address>(callback->setter()) == 0) return;
1465 if (!receiver->HasFastProperties()) return;
1463 code = isolate()->stub_cache()->ComputeStoreCallback( 1466 code = isolate()->stub_cache()->ComputeStoreCallback(
1464 name, receiver, callback, strict_mode); 1467 name, receiver, callback, strict_mode);
1465 break; 1468 break;
1466 } 1469 }
1467 case INTERCEPTOR: 1470 case INTERCEPTOR:
1468 ASSERT(!receiver->GetNamedInterceptor()->setter()->IsUndefined()); 1471 ASSERT(!receiver->GetNamedInterceptor()->setter()->IsUndefined());
1469 code = isolate()->stub_cache()->ComputeStoreInterceptor( 1472 code = isolate()->stub_cache()->ComputeStoreInterceptor(
1470 name, receiver, strict_mode); 1473 name, receiver, strict_mode);
1471 break; 1474 break;
1472 case CONSTANT_FUNCTION: 1475 case CONSTANT_FUNCTION:
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 #undef ADDR 2585 #undef ADDR
2583 }; 2586 };
2584 2587
2585 2588
2586 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2589 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2587 return IC_utilities[id]; 2590 return IC_utilities[id];
2588 } 2591 }
2589 2592
2590 2593
2591 } } // namespace v8::internal 2594 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698