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

Side by Side Diff: src/ia32/ic-ia32.cc

Issue 575022: Eliminate unused function KeyedStoreIC::GenerateExtendStorage, and unused par... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/builtins.cc ('k') | src/ia32/stub-cache-ia32.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-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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 1378 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC,
1379 NOT_IN_LOOP, 1379 NOT_IN_LOOP,
1380 MONOMORPHIC); 1380 MONOMORPHIC);
1381 StubCache::GenerateProbe(masm, flags, edx, ecx, ebx, no_reg); 1381 StubCache::GenerateProbe(masm, flags, edx, ecx, ebx, no_reg);
1382 1382
1383 // Cache miss: Jump to runtime. 1383 // Cache miss: Jump to runtime.
1384 GenerateMiss(masm); 1384 GenerateMiss(masm);
1385 } 1385 }
1386 1386
1387 1387
1388 void StoreIC::GenerateExtendStorage(MacroAssembler* masm) {
1389 // ----------- S t a t e -------------
1390 // -- eax : value
1391 // -- ecx : transition map
1392 // -- edx : receiver
1393 // -- esp[0] : return address
1394 // -----------------------------------
1395
1396 __ pop(ebx);
1397 __ push(edx); // receiver
1398 __ push(ecx); // transition map
1399 __ push(eax); // value
1400 __ push(ebx); // return address
1401
1402 // Perform tail call to the entry.
1403 __ TailCallRuntime(
1404 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3, 1);
1405 }
1406
1407
1408 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1388 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1409 // ----------- S t a t e ------------- 1389 // ----------- S t a t e -------------
1410 // -- eax : value 1390 // -- eax : value
1411 // -- ecx : name 1391 // -- ecx : name
1412 // -- edx : receiver 1392 // -- edx : receiver
1413 // -- esp[0] : return address 1393 // -- esp[0] : return address
1414 // ----------------------------------- 1394 // -----------------------------------
1415 1395
1416 __ pop(ebx); 1396 __ pop(ebx);
1417 __ push(edx); 1397 __ push(edx);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 __ pop(ecx); 1437 __ pop(ecx);
1458 __ push(Operand(esp, 1 * kPointerSize)); 1438 __ push(Operand(esp, 1 * kPointerSize));
1459 __ push(Operand(esp, 1 * kPointerSize)); 1439 __ push(Operand(esp, 1 * kPointerSize));
1460 __ push(eax); 1440 __ push(eax);
1461 __ push(ecx); 1441 __ push(ecx);
1462 1442
1463 // Do tail-call to runtime routine. 1443 // Do tail-call to runtime routine.
1464 __ TailCallRuntime(ExternalReference(IC_Utility(kKeyedStoreIC_Miss)), 3, 1); 1444 __ TailCallRuntime(ExternalReference(IC_Utility(kKeyedStoreIC_Miss)), 3, 1);
1465 } 1445 }
1466 1446
1467
1468 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) {
1469 // ----------- S t a t e -------------
1470 // -- eax : value
1471 // -- ecx : transition map
1472 // -- esp[0] : return address
1473 // -- esp[4] : key
1474 // -- esp[8] : receiver
1475 // -----------------------------------
1476
1477 __ pop(ebx);
1478 __ push(Operand(esp, 1 * kPointerSize));
1479 __ push(ecx);
1480 __ push(eax);
1481 __ push(ebx);
1482
1483 // Do tail-call to runtime routine.
1484 __ TailCallRuntime(
1485 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3, 1);
1486 }
1487
1488 #undef __ 1447 #undef __
1489 1448
1490 1449
1491 } } // namespace v8::internal 1450 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698