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

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

Issue 8305001: Introduce HTransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits fixed Created 9 years, 2 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 __ push(ecx); 1573 __ push(ecx);
1574 __ push(eax); 1574 __ push(eax);
1575 __ push(ebx); // return address 1575 __ push(ebx); // return address
1576 1576
1577 // Do tail-call to runtime routine. 1577 // Do tail-call to runtime routine.
1578 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); 1578 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1579 __ TailCallExternalReference(ref, 3, 1); 1579 __ TailCallExternalReference(ref, 3, 1);
1580 } 1580 }
1581 1581
1582 1582
1583 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
1584 // ----------- S t a t e -------------
1585 // -- edx : receiver
1586 // -- esp[0] : return address
1587 // -----------------------------------
1588 // Must return the modified receiver in eax.
1589
1590 __ pop(ebx);
1591 __ push(edx);
1592 __ push(ebx); // return address
1593
1594 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1);
1595 }
1596
1597
1598 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
1599 MacroAssembler* masm) {
1600 // ----------- S t a t e -------------
1601 // -- edx : receiver
1602 // -- esp[0] : return address
1603 // -----------------------------------
1604 // Must return the modified receiver in eax.
1605
1606 __ pop(ebx);
1607 __ push(edx);
1608 __ push(ebx); // return address
1609
1610 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1);
1611 }
1612
1613
1583 #undef __ 1614 #undef __
1584 1615
1585 1616
1586 Condition CompareIC::ComputeCondition(Token::Value op) { 1617 Condition CompareIC::ComputeCondition(Token::Value op) {
1587 switch (op) { 1618 switch (op) {
1588 case Token::EQ_STRICT: 1619 case Token::EQ_STRICT:
1589 case Token::EQ: 1620 case Token::EQ:
1590 return equal; 1621 return equal;
1591 case Token::LT: 1622 case Token::LT:
1592 return less; 1623 return less;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1707 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1677 ? not_zero 1708 ? not_zero
1678 : zero; 1709 : zero;
1679 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1710 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1680 } 1711 }
1681 1712
1682 1713
1683 } } // namespace v8::internal 1714 } } // namespace v8::internal
1684 1715
1685 #endif // V8_TARGET_ARCH_IA32 1716 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698