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

Side by Side Diff: src/ic.cc

Issue 502028: Streamline the calling convention of the call ICs by passing the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/ic.h ('k') | src/x64/fast-codegen-x64.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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 InLoopFlag in_loop = ic.target()->ic_in_loop(); 1285 InLoopFlag in_loop = ic.target()->ic_in_loop();
1286 if (in_loop == IN_LOOP) { 1286 if (in_loop == IN_LOOP) {
1287 CompileLazyInLoop(function, CLEAR_EXCEPTION); 1287 CompileLazyInLoop(function, CLEAR_EXCEPTION);
1288 } else { 1288 } else {
1289 CompileLazy(function, CLEAR_EXCEPTION); 1289 CompileLazy(function, CLEAR_EXCEPTION);
1290 } 1290 }
1291 return *function; 1291 return *function;
1292 } 1292 }
1293 1293
1294 1294
1295 void CallIC::GenerateInitialize(MacroAssembler* masm, int argc) {
1296 Generate(masm, argc, ExternalReference(IC_Utility(kCallIC_Miss)));
1297 }
1298
1299
1300 void CallIC::GenerateMiss(MacroAssembler* masm, int argc) {
1301 Generate(masm, argc, ExternalReference(IC_Utility(kCallIC_Miss)));
1302 }
1303
1304
1305 // Used from ic_<arch>.cc. 1295 // Used from ic_<arch>.cc.
1306 Object* LoadIC_Miss(Arguments args) { 1296 Object* LoadIC_Miss(Arguments args) {
1307 NoHandleAllocation na; 1297 NoHandleAllocation na;
1308 ASSERT(args.length() == 2); 1298 ASSERT(args.length() == 2);
1309 LoadIC ic; 1299 LoadIC ic;
1310 IC::State state = IC::StateFrom(ic.target(), args[0]); 1300 IC::State state = IC::StateFrom(ic.target(), args[0]);
1311 return ic.Load(state, args.at<Object>(0), args.at<String>(1)); 1301 return ic.Load(state, args.at<Object>(0), args.at<String>(1));
1312 } 1302 }
1313 1303
1314 1304
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 #undef ADDR 1415 #undef ADDR
1426 }; 1416 };
1427 1417
1428 1418
1429 Address IC::AddressFromUtilityId(IC::UtilityId id) { 1419 Address IC::AddressFromUtilityId(IC::UtilityId id) {
1430 return IC_utilities[id]; 1420 return IC_utilities[id];
1431 } 1421 }
1432 1422
1433 1423
1434 } } // namespace v8::internal 1424 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/fast-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698