| OLD | NEW |
| 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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 LInstruction* instr = current->CompileToLithium(this); | 914 LInstruction* instr = current->CompileToLithium(this); |
| 915 | 915 |
| 916 if (instr != NULL) { | 916 if (instr != NULL) { |
| 917 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 917 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
| 918 instr = AssignPointerMap(instr); | 918 instr = AssignPointerMap(instr); |
| 919 } | 919 } |
| 920 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 920 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
| 921 instr = AssignEnvironment(instr); | 921 instr = AssignEnvironment(instr); |
| 922 } | 922 } |
| 923 if (current->IsTest() && !instr->IsGoto()) { | 923 if (current->IsTest() && !instr->IsGoto()) { |
| 924 // TODO(fschneider): Handle test instructions uniformly like | |
| 925 // other instructions. This requires us to generate the right | |
| 926 // branch instruction already at the HIR level. | |
| 927 ASSERT(instr->IsControl()); | 924 ASSERT(instr->IsControl()); |
| 928 HTest* test = HTest::cast(current); | 925 HTest* test = HTest::cast(current); |
| 929 instr->set_hydrogen_value(test->value()); | 926 instr->set_hydrogen_value(test->value()); |
| 930 HBasicBlock* first = test->FirstSuccessor(); | 927 HBasicBlock* first = test->FirstSuccessor(); |
| 931 HBasicBlock* second = test->SecondSuccessor(); | 928 HBasicBlock* second = test->SecondSuccessor(); |
| 932 ASSERT(first != NULL && second != NULL); | 929 ASSERT(first != NULL && second != NULL); |
| 933 instr->SetBranchTargets(first->block_id(), second->block_id()); | 930 instr->SetBranchTargets(first->block_id(), second->block_id()); |
| 934 } else { | 931 } else { |
| 935 instr->set_hydrogen_value(current); | 932 instr->set_hydrogen_value(current); |
| 936 } | 933 } |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1908 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1912 HEnvironment* outer = current_block_->last_environment()->outer(); | 1909 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1913 current_block_->UpdateEnvironment(outer); | 1910 current_block_->UpdateEnvironment(outer); |
| 1914 return NULL; | 1911 return NULL; |
| 1915 } | 1912 } |
| 1916 | 1913 |
| 1917 | 1914 |
| 1918 } } // namespace v8::internal | 1915 } } // namespace v8::internal |
| 1919 | 1916 |
| 1920 #endif // V8_TARGET_ARCH_IA32 | 1917 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |