OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |