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

Side by Side Diff: src/ic.cc

Issue 6597030: [Isolates] Lint fixes (whitespaces) after merge 6300:6500 (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 10 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/stub-cache-ia32.cc ('k') | no next file » | 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 *object, 616 *object,
617 lookup->holder(), 617 lookup->holder(),
618 index); 618 index);
619 break; 619 break;
620 } 620 }
621 case CONSTANT_FUNCTION: { 621 case CONSTANT_FUNCTION: {
622 // Get the constant function and compute the code stub for this 622 // Get the constant function and compute the code stub for this
623 // call; used for rewriting to monomorphic state and making sure 623 // call; used for rewriting to monomorphic state and making sure
624 // that the code stub is in the stub cache. 624 // that the code stub is in the stub cache.
625 JSFunction* function = lookup->GetConstantFunction(); 625 JSFunction* function = lookup->GetConstantFunction();
626 maybe_code = 626 maybe_code =
627 isolate()->stub_cache()->ComputeCallConstant(argc, 627 isolate()->stub_cache()->ComputeCallConstant(argc,
628 in_loop, 628 in_loop,
629 kind_, 629 kind_,
630 extra_ic_state, 630 extra_ic_state,
631 *name, 631 *name,
632 *object, 632 *object,
633 lookup->holder(), 633 lookup->holder(),
634 function); 634 function);
635 break; 635 break;
636 } 636 }
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 MaybeObject* probe = 1246 MaybeObject* probe =
1247 isolate()->stub_cache()->ComputeKeyedLoadOrStoreExternalArray( 1247 isolate()->stub_cache()->ComputeKeyedLoadOrStoreExternalArray(
1248 *receiver, false); 1248 *receiver, false);
1249 stub = 1249 stub =
1250 probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked()); 1250 probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked());
1251 } else if (receiver->HasIndexedInterceptor()) { 1251 } else if (receiver->HasIndexedInterceptor()) {
1252 stub = indexed_interceptor_stub(); 1252 stub = indexed_interceptor_stub();
1253 } else if (state == UNINITIALIZED && 1253 } else if (state == UNINITIALIZED &&
1254 key->IsSmi() && 1254 key->IsSmi() &&
1255 receiver->map()->has_fast_elements()) { 1255 receiver->map()->has_fast_elements()) {
1256 MaybeObject* probe = 1256 MaybeObject* probe =
1257 isolate()->stub_cache()->ComputeKeyedLoadSpecialized(*receiver); 1257 isolate()->stub_cache()->ComputeKeyedLoadSpecialized(*receiver);
1258 stub = 1258 stub =
1259 probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked()); 1259 probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked());
1260 } 1260 }
1261 } 1261 }
1262 if (stub != NULL) set_target(stub); 1262 if (stub != NULL) set_target(stub);
1263 1263
1264 #ifdef DEBUG 1264 #ifdef DEBUG
1265 TraceIC("KeyedLoadIC", key, state, target()); 1265 TraceIC("KeyedLoadIC", key, state, target());
1266 #endif // DEBUG 1266 #endif // DEBUG
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 #undef ADDR 2305 #undef ADDR
2306 }; 2306 };
2307 2307
2308 2308
2309 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2309 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2310 return IC_utilities[id]; 2310 return IC_utilities[id];
2311 } 2311 }
2312 2312
2313 2313
2314 } } // namespace v8::internal 2314 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698