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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 __ bind(&done); | 624 __ bind(&done); |
625 } | 625 } |
626 | 626 |
627 | 627 |
628 void FullCodeGenerator::StackValueContext::Plug( | 628 void FullCodeGenerator::StackValueContext::Plug( |
629 Label* materialize_true, | 629 Label* materialize_true, |
630 Label* materialize_false) const { | 630 Label* materialize_false) const { |
631 Label done; | 631 Label done; |
632 __ bind(materialize_true); | 632 __ bind(materialize_true); |
633 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 633 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
| 634 // Push the value as the following branch can clobber at in long branch mode. |
| 635 __ push(at); |
634 __ Branch(&done); | 636 __ Branch(&done); |
635 __ bind(materialize_false); | 637 __ bind(materialize_false); |
636 __ LoadRoot(at, Heap::kFalseValueRootIndex); | 638 __ LoadRoot(at, Heap::kFalseValueRootIndex); |
| 639 __ push(at); |
637 __ bind(&done); | 640 __ bind(&done); |
638 __ push(at); | |
639 } | 641 } |
640 | 642 |
641 | 643 |
642 void FullCodeGenerator::TestContext::Plug(Label* materialize_true, | 644 void FullCodeGenerator::TestContext::Plug(Label* materialize_true, |
643 Label* materialize_false) const { | 645 Label* materialize_false) const { |
644 ASSERT(materialize_true == true_label_); | 646 ASSERT(materialize_true == true_label_); |
645 ASSERT(materialize_false == false_label_); | 647 ASSERT(materialize_false == false_label_); |
646 } | 648 } |
647 | 649 |
648 | 650 |
(...skipping 4326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4975 Assembler::target_address_at(pc_immediate_load_address)) == | 4977 Assembler::target_address_at(pc_immediate_load_address)) == |
4976 reinterpret_cast<uint32_t>( | 4978 reinterpret_cast<uint32_t>( |
4977 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4979 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4978 return OSR_AFTER_STACK_CHECK; | 4980 return OSR_AFTER_STACK_CHECK; |
4979 } | 4981 } |
4980 | 4982 |
4981 | 4983 |
4982 } } // namespace v8::internal | 4984 } } // namespace v8::internal |
4983 | 4985 |
4984 #endif // V8_TARGET_ARCH_MIPS | 4986 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |