OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 EmitPop(r1); | 314 EmitPop(r1); |
315 SpillAll(); | 315 SpillAll(); |
316 } | 316 } |
317 __ mov(r2, Operand(name)); | 317 __ mov(r2, Operand(name)); |
318 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); | 318 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); |
319 } | 319 } |
320 | 320 |
321 | 321 |
322 void VirtualFrame::CallKeyedLoadIC() { | 322 void VirtualFrame::CallKeyedLoadIC() { |
323 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); | 323 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); |
| 324 SpillAllButCopyTOSToR0(); |
324 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); | 325 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); |
325 } | 326 } |
326 | 327 |
327 | 328 |
328 void VirtualFrame::CallKeyedStoreIC() { | 329 void VirtualFrame::CallKeyedStoreIC() { |
329 ASSERT(SpilledScope::is_spilled()); | 330 ASSERT(SpilledScope::is_spilled()); |
330 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); | 331 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); |
331 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); | 332 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); |
332 } | 333 } |
333 | 334 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 default: | 657 default: |
657 UNREACHABLE(); | 658 UNREACHABLE(); |
658 break; | 659 break; |
659 } | 660 } |
660 ASSERT(register_allocation_map_ == 0); // Not yet implemented. | 661 ASSERT(register_allocation_map_ == 0); // Not yet implemented. |
661 } | 662 } |
662 | 663 |
663 #undef __ | 664 #undef __ |
664 | 665 |
665 } } // namespace v8::internal | 666 } } // namespace v8::internal |
OLD | NEW |