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

Side by Side Diff: src/ic.cc

Issue 10816002: Merged r12088 into 3.8 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.8
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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 if (!holder.is_identical_to(receiver)) return; 931 if (!holder.is_identical_to(receiver)) return;
932 code = isolate()->stub_cache()->ComputeLoadNormal(); 932 code = isolate()->stub_cache()->ComputeLoadNormal();
933 } 933 }
934 break; 934 break;
935 case CALLBACKS: { 935 case CALLBACKS: {
936 Handle<Object> callback_object(lookup->GetCallbackObject()); 936 Handle<Object> callback_object(lookup->GetCallbackObject());
937 if (!callback_object->IsAccessorInfo()) return; 937 if (!callback_object->IsAccessorInfo()) return;
938 Handle<AccessorInfo> callback = 938 Handle<AccessorInfo> callback =
939 Handle<AccessorInfo>::cast(callback_object); 939 Handle<AccessorInfo>::cast(callback_object);
940 if (v8::ToCData<Address>(callback->getter()) == 0) return; 940 if (v8::ToCData<Address>(callback->getter()) == 0) return;
941 if (!receiver->HasFastProperties()) return;
941 code = isolate()->stub_cache()->ComputeLoadCallback( 942 code = isolate()->stub_cache()->ComputeLoadCallback(
942 name, receiver, holder, callback); 943 name, receiver, holder, callback);
943 break; 944 break;
944 } 945 }
945 case INTERCEPTOR: 946 case INTERCEPTOR:
946 ASSERT(HasInterceptorGetter(*holder)); 947 ASSERT(HasInterceptorGetter(*holder));
947 code = isolate()->stub_cache()->ComputeLoadInterceptor( 948 code = isolate()->stub_cache()->ComputeLoadInterceptor(
948 name, receiver, holder); 949 name, receiver, holder);
949 break; 950 break;
950 default: 951 default:
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 code = isolate()->stub_cache()->ComputeKeyedLoadConstant( 1168 code = isolate()->stub_cache()->ComputeKeyedLoadConstant(
1168 name, receiver, holder, constant); 1169 name, receiver, holder, constant);
1169 break; 1170 break;
1170 } 1171 }
1171 case CALLBACKS: { 1172 case CALLBACKS: {
1172 Handle<Object> callback_object(lookup->GetCallbackObject()); 1173 Handle<Object> callback_object(lookup->GetCallbackObject());
1173 if (!callback_object->IsAccessorInfo()) return; 1174 if (!callback_object->IsAccessorInfo()) return;
1174 Handle<AccessorInfo> callback = 1175 Handle<AccessorInfo> callback =
1175 Handle<AccessorInfo>::cast(callback_object); 1176 Handle<AccessorInfo>::cast(callback_object);
1176 if (v8::ToCData<Address>(callback->getter()) == 0) return; 1177 if (v8::ToCData<Address>(callback->getter()) == 0) return;
1178 if (!receiver->HasFastProperties()) return;
1177 code = isolate()->stub_cache()->ComputeKeyedLoadCallback( 1179 code = isolate()->stub_cache()->ComputeKeyedLoadCallback(
1178 name, receiver, holder, callback); 1180 name, receiver, holder, callback);
1179 break; 1181 break;
1180 } 1182 }
1181 case INTERCEPTOR: 1183 case INTERCEPTOR:
1182 ASSERT(HasInterceptorGetter(lookup->holder())); 1184 ASSERT(HasInterceptorGetter(lookup->holder()));
1183 code = isolate()->stub_cache()->ComputeKeyedLoadInterceptor( 1185 code = isolate()->stub_cache()->ComputeKeyedLoadInterceptor(
1184 name, receiver, holder); 1186 name, receiver, holder);
1185 break; 1187 break;
1186 default: 1188 default:
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 if (lookup->holder() != *receiver) return; 1383 if (lookup->holder() != *receiver) return;
1382 code = isolate()->stub_cache()->ComputeStoreNormal(strict_mode); 1384 code = isolate()->stub_cache()->ComputeStoreNormal(strict_mode);
1383 } 1385 }
1384 break; 1386 break;
1385 case CALLBACKS: { 1387 case CALLBACKS: {
1386 Handle<Object> callback_object(lookup->GetCallbackObject()); 1388 Handle<Object> callback_object(lookup->GetCallbackObject());
1387 if (!callback_object->IsAccessorInfo()) return; 1389 if (!callback_object->IsAccessorInfo()) return;
1388 Handle<AccessorInfo> callback = 1390 Handle<AccessorInfo> callback =
1389 Handle<AccessorInfo>::cast(callback_object); 1391 Handle<AccessorInfo>::cast(callback_object);
1390 if (v8::ToCData<Address>(callback->setter()) == 0) return; 1392 if (v8::ToCData<Address>(callback->setter()) == 0) return;
1393 if (!receiver->HasFastProperties()) return;
1391 code = isolate()->stub_cache()->ComputeStoreCallback( 1394 code = isolate()->stub_cache()->ComputeStoreCallback(
1392 name, receiver, callback, strict_mode); 1395 name, receiver, callback, strict_mode);
1393 break; 1396 break;
1394 } 1397 }
1395 case INTERCEPTOR: 1398 case INTERCEPTOR:
1396 ASSERT(!receiver->GetNamedInterceptor()->setter()->IsUndefined()); 1399 ASSERT(!receiver->GetNamedInterceptor()->setter()->IsUndefined());
1397 code = isolate()->stub_cache()->ComputeStoreInterceptor( 1400 code = isolate()->stub_cache()->ComputeStoreInterceptor(
1398 name, receiver, strict_mode); 1401 name, receiver, strict_mode);
1399 break; 1402 break;
1400 case CONSTANT_FUNCTION: 1403 case CONSTANT_FUNCTION:
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 #undef ADDR 2430 #undef ADDR
2428 }; 2431 };
2429 2432
2430 2433
2431 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2434 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2432 return IC_utilities[id]; 2435 return IC_utilities[id];
2433 } 2436 }
2434 2437
2435 2438
2436 } } // namespace v8::internal 2439 } } // 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