OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 static void Generate_KeyedLoadIC_IndexedInterceptor(MacroAssembler* masm) { | 1300 static void Generate_KeyedLoadIC_IndexedInterceptor(MacroAssembler* masm) { |
1301 KeyedLoadIC::GenerateIndexedInterceptor(masm); | 1301 KeyedLoadIC::GenerateIndexedInterceptor(masm); |
1302 } | 1302 } |
1303 | 1303 |
1304 | 1304 |
1305 static void Generate_StoreIC_Initialize(MacroAssembler* masm) { | 1305 static void Generate_StoreIC_Initialize(MacroAssembler* masm) { |
1306 StoreIC::GenerateInitialize(masm); | 1306 StoreIC::GenerateInitialize(masm); |
1307 } | 1307 } |
1308 | 1308 |
1309 | 1309 |
| 1310 static void Generate_StoreIC_Initialize_Strict(MacroAssembler* masm) { |
| 1311 StoreIC::GenerateInitialize(masm); |
| 1312 } |
| 1313 |
| 1314 |
1310 static void Generate_StoreIC_Miss(MacroAssembler* masm) { | 1315 static void Generate_StoreIC_Miss(MacroAssembler* masm) { |
1311 StoreIC::GenerateMiss(masm); | 1316 StoreIC::GenerateMiss(masm); |
1312 } | 1317 } |
1313 | 1318 |
1314 | 1319 |
1315 static void Generate_StoreIC_Normal(MacroAssembler* masm) { | 1320 static void Generate_StoreIC_Normal(MacroAssembler* masm) { |
1316 StoreIC::GenerateNormal(masm); | 1321 StoreIC::GenerateNormal(masm); |
1317 } | 1322 } |
1318 | 1323 |
1319 | 1324 |
| 1325 static void Generate_StoreIC_Normal_Strict(MacroAssembler* masm) { |
| 1326 StoreIC::GenerateNormal(masm); |
| 1327 } |
| 1328 |
| 1329 |
1320 static void Generate_StoreIC_Megamorphic(MacroAssembler* masm) { | 1330 static void Generate_StoreIC_Megamorphic(MacroAssembler* masm) { |
1321 StoreIC::GenerateMegamorphic(masm); | 1331 StoreIC::GenerateMegamorphic(masm, StoreIC::kStoreICNonStrict); |
1322 } | 1332 } |
1323 | 1333 |
1324 | 1334 |
| 1335 static void Generate_StoreIC_Megamorphic_Strict(MacroAssembler* masm) { |
| 1336 StoreIC::GenerateMegamorphic(masm, StoreIC::kStoreICStrict); |
| 1337 } |
| 1338 |
| 1339 |
1325 static void Generate_StoreIC_ArrayLength(MacroAssembler* masm) { | 1340 static void Generate_StoreIC_ArrayLength(MacroAssembler* masm) { |
1326 StoreIC::GenerateArrayLength(masm); | 1341 StoreIC::GenerateArrayLength(masm); |
1327 } | 1342 } |
1328 | 1343 |
1329 | 1344 |
| 1345 static void Generate_StoreIC_ArrayLength_Strict(MacroAssembler* masm) { |
| 1346 StoreIC::GenerateArrayLength(masm); |
| 1347 } |
| 1348 |
| 1349 |
1330 static void Generate_StoreIC_GlobalProxy(MacroAssembler* masm) { | 1350 static void Generate_StoreIC_GlobalProxy(MacroAssembler* masm) { |
1331 StoreIC::GenerateGlobalProxy(masm); | 1351 StoreIC::GenerateGlobalProxy(masm); |
1332 } | 1352 } |
1333 | 1353 |
1334 | 1354 |
| 1355 static void Generate_StoreIC_GlobalProxy_Strict(MacroAssembler* masm) { |
| 1356 StoreIC::GenerateGlobalProxy(masm); |
| 1357 } |
| 1358 |
| 1359 |
1335 static void Generate_KeyedStoreIC_Generic(MacroAssembler* masm) { | 1360 static void Generate_KeyedStoreIC_Generic(MacroAssembler* masm) { |
1336 KeyedStoreIC::GenerateGeneric(masm); | 1361 KeyedStoreIC::GenerateGeneric(masm); |
1337 } | 1362 } |
1338 | 1363 |
1339 | 1364 |
1340 static void Generate_KeyedStoreIC_Miss(MacroAssembler* masm) { | 1365 static void Generate_KeyedStoreIC_Miss(MacroAssembler* masm) { |
1341 KeyedStoreIC::GenerateMiss(masm); | 1366 KeyedStoreIC::GenerateMiss(masm); |
1342 } | 1367 } |
1343 | 1368 |
1344 | 1369 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 | 1462 |
1438 #define DEF_FUNCTION_PTR_C(name, extra_args) \ | 1463 #define DEF_FUNCTION_PTR_C(name, extra_args) \ |
1439 { FUNCTION_ADDR(Generate_Adaptor), \ | 1464 { FUNCTION_ADDR(Generate_Adaptor), \ |
1440 FUNCTION_ADDR(Builtin_##name), \ | 1465 FUNCTION_ADDR(Builtin_##name), \ |
1441 #name, \ | 1466 #name, \ |
1442 c_##name, \ | 1467 c_##name, \ |
1443 Code::ComputeFlags(Code::BUILTIN), \ | 1468 Code::ComputeFlags(Code::BUILTIN), \ |
1444 extra_args \ | 1469 extra_args \ |
1445 }, | 1470 }, |
1446 | 1471 |
1447 #define DEF_FUNCTION_PTR_A(name, kind, state) \ | 1472 #define DEF_FUNCTION_PTR_A(name, kind, state, extra) \ |
1448 { FUNCTION_ADDR(Generate_##name), \ | 1473 { FUNCTION_ADDR(Generate_##name), \ |
1449 NULL, \ | 1474 NULL, \ |
1450 #name, \ | 1475 #name, \ |
1451 name, \ | 1476 name, \ |
1452 Code::ComputeFlags(Code::kind, NOT_IN_LOOP, state), \ | 1477 Code::ComputeFlags(Code::kind, NOT_IN_LOOP, state, extra), \ |
1453 NO_EXTRA_ARGUMENTS \ | 1478 NO_EXTRA_ARGUMENTS \ |
1454 }, | 1479 }, |
1455 | 1480 |
1456 // Define array of pointers to generators and C builtin functions. | 1481 // Define array of pointers to generators and C builtin functions. |
1457 static BuiltinDesc functions[] = { | 1482 static BuiltinDesc functions[] = { |
1458 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) | 1483 BUILTIN_LIST_C(DEF_FUNCTION_PTR_C) |
1459 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) | 1484 BUILTIN_LIST_A(DEF_FUNCTION_PTR_A) |
1460 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) | 1485 BUILTIN_LIST_DEBUG_A(DEF_FUNCTION_PTR_A) |
1461 // Terminator: | 1486 // Terminator: |
1462 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0), | 1487 { NULL, NULL, NULL, builtin_count, static_cast<Code::Flags>(0), |
1463 NO_EXTRA_ARGUMENTS } | 1488 NO_EXTRA_ARGUMENTS } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 if (entry->contains(pc)) { | 1567 if (entry->contains(pc)) { |
1543 return names_[i]; | 1568 return names_[i]; |
1544 } | 1569 } |
1545 } | 1570 } |
1546 } | 1571 } |
1547 return NULL; | 1572 return NULL; |
1548 } | 1573 } |
1549 | 1574 |
1550 | 1575 |
1551 } } // namespace v8::internal | 1576 } } // namespace v8::internal |
OLD | NEW |