Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 6350011: Port to ARM and x64: Record the lazy deoptimization environmnent only at LLa... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698