| 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 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1851 if (instr->HasAssignedIndexAt(i)) { | 1851 if (instr->HasAssignedIndexAt(i)) { |
| 1852 env->Bind(instr->GetAssignedIndexAt(i), value); | 1852 env->Bind(instr->GetAssignedIndexAt(i), value); |
| 1853 } else { | 1853 } else { |
| 1854 env->Push(value); | 1854 env->Push(value); |
| 1855 } | 1855 } |
| 1856 } | 1856 } |
| 1857 ASSERT(env->length() == instr->environment_length()); | 1857 ASSERT(env->length() == instr->environment_length()); |
| 1858 | 1858 |
| 1859 // If there is an instruction pending deoptimization environment create a | 1859 // If there is an instruction pending deoptimization environment create a |
| 1860 // lazy bailout instruction to capture the environment. | 1860 // lazy bailout instruction to capture the environment. |
| 1861 if (pending_deoptimization_ast_id_ == instr->ast_id()) { | 1861 if (pending_deoptimization_ast_id_ != AstNode::kNoNumber) { |
| 1862 ASSERT(pending_deoptimization_ast_id_ == instr->ast_id()); |
| 1862 LLazyBailout* lazy_bailout = new LLazyBailout; | 1863 LLazyBailout* lazy_bailout = new LLazyBailout; |
| 1863 LInstruction* result = AssignEnvironment(lazy_bailout); | 1864 LInstruction* result = AssignEnvironment(lazy_bailout); |
| 1864 pending_deoptimization_ast_id_ = AstNode::kNoNumber; | 1865 pending_deoptimization_ast_id_ = AstNode::kNoNumber; |
| 1865 return result; | 1866 return result; |
| 1866 } | 1867 } |
| 1867 | 1868 |
| 1868 return NULL; | 1869 return NULL; |
| 1869 } | 1870 } |
| 1870 | 1871 |
| 1871 | 1872 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1890 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1891 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1891 HEnvironment* outer = current_block_->last_environment()->outer(); | 1892 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1892 current_block_->UpdateEnvironment(outer); | 1893 current_block_->UpdateEnvironment(outer); |
| 1893 return NULL; | 1894 return NULL; |
| 1894 } | 1895 } |
| 1895 | 1896 |
| 1896 | 1897 |
| 1897 } } // namespace v8::internal | 1898 } } // namespace v8::internal |
| 1898 | 1899 |
| 1899 #endif // V8_TARGET_ARCH_IA32 | 1900 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |