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

Side by Side Diff: src/deoptimizer.cc

Issue 1859763005: [crankshaft] Fix environment handling after leaving inlined tail call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/crankshaft/lithium.cc ('k') | test/mjsunit/regress/regress-crbug-537444.js » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 output_frame->SetConstantPool(constant_pool_value); 1423 output_frame->SetConstantPool(constant_pool_value);
1424 } 1424 }
1425 } 1425 }
1426 1426
1427 void Deoptimizer::DoComputeTailCallerFrame(TranslatedFrame* translated_frame, 1427 void Deoptimizer::DoComputeTailCallerFrame(TranslatedFrame* translated_frame,
1428 int frame_index) { 1428 int frame_index) {
1429 SharedFunctionInfo* shared = translated_frame->raw_shared_info(); 1429 SharedFunctionInfo* shared = translated_frame->raw_shared_info();
1430 1430
1431 bool is_bottommost = (0 == frame_index); 1431 bool is_bottommost = (0 == frame_index);
1432 // Tail caller frame can't be topmost. 1432 // Tail caller frame can't be topmost.
1433 DCHECK_NE(output_count_ - 1, frame_index); 1433 CHECK_NE(output_count_ - 1, frame_index);
1434 1434
1435 if (trace_scope_ != NULL) { 1435 if (trace_scope_ != NULL) {
1436 PrintF(trace_scope_->file(), " translating tail caller frame "); 1436 PrintF(trace_scope_->file(), " translating tail caller frame ");
1437 base::SmartArrayPointer<char> name = shared->DebugName()->ToCString(); 1437 base::SmartArrayPointer<char> name = shared->DebugName()->ToCString();
1438 PrintF(trace_scope_->file(), "%s\n", name.get()); 1438 PrintF(trace_scope_->file(), "%s\n", name.get());
1439 } 1439 }
1440 1440
1441 if (!is_bottommost) return; 1441 if (!is_bottommost) return;
1442 1442
1443 // Drop arguments adaptor frame below current frame if it exsits. 1443 // Drop arguments adaptor frame below current frame if it exsits.
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
3811 CHECK(value_info->IsMaterializedObject()); 3811 CHECK(value_info->IsMaterializedObject());
3812 3812
3813 value_info->value_ = 3813 value_info->value_ =
3814 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3814 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3815 } 3815 }
3816 } 3816 }
3817 } 3817 }
3818 3818
3819 } // namespace internal 3819 } // namespace internal
3820 } // namespace v8 3820 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/lithium.cc ('k') | test/mjsunit/regress/regress-crbug-537444.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698