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

Side by Side Diff: src/deoptimizer.cc

Issue 1239593003: Fix memento initialization when constructing from new call (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 5 years, 5 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/arm64/builtins-arm64.cc ('k') | src/frames.h » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 output_frame->SetFrameSlot(output_offset, value); 1214 output_frame->SetFrameSlot(output_offset, value);
1215 DebugPrintOutputSlot(value, frame_index, output_offset, 1215 DebugPrintOutputSlot(value, frame_index, output_offset,
1216 "function (construct sentinel)\n"); 1216 "function (construct sentinel)\n");
1217 1217
1218 // The output frame reflects a JSConstructStubGeneric frame. 1218 // The output frame reflects a JSConstructStubGeneric frame.
1219 output_offset -= kPointerSize; 1219 output_offset -= kPointerSize;
1220 value = reinterpret_cast<intptr_t>(construct_stub); 1220 value = reinterpret_cast<intptr_t>(construct_stub);
1221 output_frame->SetFrameSlot(output_offset, value); 1221 output_frame->SetFrameSlot(output_offset, value);
1222 DebugPrintOutputSlot(value, frame_index, output_offset, "code object\n"); 1222 DebugPrintOutputSlot(value, frame_index, output_offset, "code object\n");
1223 1223
1224 // The allocation site.
1225 output_offset -= kPointerSize;
1226 value = reinterpret_cast<intptr_t>(isolate_->heap()->undefined_value());
1227 output_frame->SetFrameSlot(output_offset, value);
1228 DebugPrintOutputSlot(value, frame_index, output_offset, "allocation site\n");
1229
1224 // Number of incoming arguments. 1230 // Number of incoming arguments.
1225 output_offset -= kPointerSize; 1231 output_offset -= kPointerSize;
1226 value = reinterpret_cast<intptr_t>(Smi::FromInt(height - 1)); 1232 value = reinterpret_cast<intptr_t>(Smi::FromInt(height - 1));
1227 output_frame->SetFrameSlot(output_offset, value); 1233 output_frame->SetFrameSlot(output_offset, value);
1228 DebugPrintOutputSlot(value, frame_index, output_offset, "argc "); 1234 DebugPrintOutputSlot(value, frame_index, output_offset, "argc ");
1229 if (trace_scope_ != nullptr) { 1235 if (trace_scope_ != nullptr) {
1230 PrintF(trace_scope_->file(), "(%d)\n", height - 1); 1236 PrintF(trace_scope_->file(), "(%d)\n", height - 1);
1231 } 1237 }
1232 1238
1233 // The original constructor. 1239 // The original constructor.
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 DCHECK(value_info->IsMaterializedObject()); 3390 DCHECK(value_info->IsMaterializedObject());
3385 3391
3386 value_info->value_ = 3392 value_info->value_ =
3387 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3393 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3388 } 3394 }
3389 } 3395 }
3390 } 3396 }
3391 3397
3392 } // namespace internal 3398 } // namespace internal
3393 } // namespace v8 3399 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698