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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 if (top_of_stack_state_ == NO_TOS_REGISTERS) { | 410 if (top_of_stack_state_ == NO_TOS_REGISTERS) { |
411 __ add(sp, sp, Operand(kPointerSize)); | 411 __ add(sp, sp, Operand(kPointerSize)); |
412 } else { | 412 } else { |
413 top_of_stack_state_ = kStateAfterPop[top_of_stack_state_]; | 413 top_of_stack_state_ = kStateAfterPop[top_of_stack_state_]; |
414 } | 414 } |
415 element_count_--; | 415 element_count_--; |
416 } | 416 } |
417 | 417 |
418 | 418 |
419 void VirtualFrame::EmitPop(Register reg) { | 419 void VirtualFrame::EmitPop(Register reg) { |
420 ASSERT(!is_used(reg)); | 420 ASSERT(!is_used(RegisterAllocator::ToNumber(reg))); |
421 if (top_of_stack_state_ == NO_TOS_REGISTERS) { | 421 if (top_of_stack_state_ == NO_TOS_REGISTERS) { |
422 __ pop(reg); | 422 __ pop(reg); |
423 } else { | 423 } else { |
424 __ mov(reg, kTopRegister[top_of_stack_state_]); | 424 __ mov(reg, kTopRegister[top_of_stack_state_]); |
425 top_of_stack_state_ = kStateAfterPop[top_of_stack_state_]; | 425 top_of_stack_state_ = kStateAfterPop[top_of_stack_state_]; |
426 } | 426 } |
427 element_count_--; | 427 element_count_--; |
428 } | 428 } |
429 | 429 |
430 | 430 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 default: | 663 default: |
664 UNREACHABLE(); | 664 UNREACHABLE(); |
665 break; | 665 break; |
666 } | 666 } |
667 ASSERT(register_allocation_map_ == 0); // Not yet implemented. | 667 ASSERT(register_allocation_map_ == 0); // Not yet implemented. |
668 } | 668 } |
669 | 669 |
670 #undef __ | 670 #undef __ |
671 | 671 |
672 } } // namespace v8::internal | 672 } } // namespace v8::internal |
OLD | NEW |