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

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

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 Created 7 years, 7 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/x64/full-codegen-x64.cc ('k') | src/x64/lithium-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 __ push(rax); // value 1521 __ push(rax); // value
1522 __ Push(Smi::FromInt(NONE)); // PropertyAttributes 1522 __ Push(Smi::FromInt(NONE)); // PropertyAttributes
1523 __ Push(Smi::FromInt(strict_mode)); // Strict mode. 1523 __ Push(Smi::FromInt(strict_mode)); // Strict mode.
1524 __ push(rbx); // return address 1524 __ push(rbx); // return address
1525 1525
1526 // Do tail-call to runtime routine. 1526 // Do tail-call to runtime routine.
1527 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 1527 __ TailCallRuntime(Runtime::kSetProperty, 5, 1);
1528 } 1528 }
1529 1529
1530 1530
1531 void StoreIC::GenerateSlow(MacroAssembler* masm) {
1532 // ----------- S t a t e -------------
1533 // -- rax : value
1534 // -- rcx : key
1535 // -- rdx : receiver
1536 // -- rsp[0] : return address
1537 // -----------------------------------
1538
1539 __ pop(rbx);
1540 __ push(rdx); // receiver
1541 __ push(rcx); // key
1542 __ push(rax); // value
1543 __ push(rbx); // return address
1544
1545 // Do tail-call to runtime routine.
1546 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1547 __ TailCallExternalReference(ref, 3, 1);
1548 }
1549
1550
1531 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { 1551 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
1532 // ----------- S t a t e ------------- 1552 // ----------- S t a t e -------------
1533 // -- rax : value 1553 // -- rax : value
1534 // -- rcx : key 1554 // -- rcx : key
1535 // -- rdx : receiver 1555 // -- rdx : receiver
1536 // -- rsp[0] : return address 1556 // -- rsp[0] : return address
1537 // ----------------------------------- 1557 // -----------------------------------
1538 1558
1539 __ pop(rbx); 1559 __ pop(rbx);
1540 __ push(rdx); // receiver 1560 __ push(rdx); // receiver
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1707 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1688 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1708 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1689 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1709 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1690 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1710 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1691 } 1711 }
1692 1712
1693 1713
1694 } } // namespace v8::internal 1714 } } // namespace v8::internal
1695 1715
1696 #endif // V8_TARGET_ARCH_X64 1716 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698