Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1719 ICCompareStub stub(op_, state); | 1719 ICCompareStub stub(op_, state); |
| 1720 if (state == KNOWN_OBJECTS) { | 1720 if (state == KNOWN_OBJECTS) { |
| 1721 stub.set_known_map(Handle<Map>(Handle<JSObject>::cast(x)->map())); | 1721 stub.set_known_map(Handle<Map>(Handle<JSObject>::cast(x)->map())); |
| 1722 } | 1722 } |
| 1723 rewritten = stub.GetCode(); | 1723 rewritten = stub.GetCode(); |
| 1724 } | 1724 } |
| 1725 set_target(*rewritten); | 1725 set_target(*rewritten); |
| 1726 | 1726 |
| 1727 #ifdef DEBUG | 1727 #ifdef DEBUG |
| 1728 if (FLAG_trace_ic) { | 1728 if (FLAG_trace_ic) { |
| 1729 PrintF("[CompareIC (%s->%s)#%s]\n", | 1729 PrintF("[CompareIC in "); |
| 1730 JavaScriptFrame::PrintTop(stdout, false, true); | |
|
fschneider
2012/03/02 12:39:15
Leftover from debugging?
danno
2012/03/02 13:28:45
Done.
| |
| 1731 PrintF(" (%s->%s)#%s]\n", | |
| 1730 GetStateName(previous_state), | 1732 GetStateName(previous_state), |
| 1731 GetStateName(state), | 1733 GetStateName(state), |
| 1732 Token::Name(op_)); | 1734 Token::Name(op_)); |
| 1733 } | 1735 } |
| 1734 #endif | 1736 #endif |
| 1735 | 1737 |
| 1736 // Activate inlined smi code. | 1738 // Activate inlined smi code. |
| 1737 if (previous_state == UNINITIALIZED) { | 1739 if (previous_state == UNINITIALIZED) { |
| 1738 PatchInlinedSmiCode(address()); | 1740 PatchInlinedSmiCode(address()); |
| 1739 } | 1741 } |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 1769 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1771 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
| 1770 ? not_zero | 1772 ? not_zero |
| 1771 : zero; | 1773 : zero; |
| 1772 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1774 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1773 } | 1775 } |
| 1774 | 1776 |
| 1775 | 1777 |
| 1776 } } // namespace v8::internal | 1778 } } // namespace v8::internal |
| 1777 | 1779 |
| 1778 #endif // V8_TARGET_ARCH_IA32 | 1780 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |