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

Side by Side Diff: src/deoptimizer.cc

Issue 1442643009: Rename original constructor to new target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 1 month 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/compiler/interpreter-assembler.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 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/codegen.h" 8 #include "src/codegen.h"
9 #include "src/disasm.h" 9 #include "src/disasm.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 1228
1229 // Number of incoming arguments. 1229 // Number of incoming arguments.
1230 output_offset -= kPointerSize; 1230 output_offset -= kPointerSize;
1231 value = reinterpret_cast<intptr_t>(Smi::FromInt(height - 1)); 1231 value = reinterpret_cast<intptr_t>(Smi::FromInt(height - 1));
1232 output_frame->SetFrameSlot(output_offset, value); 1232 output_frame->SetFrameSlot(output_offset, value);
1233 DebugPrintOutputSlot(value, frame_index, output_offset, "argc "); 1233 DebugPrintOutputSlot(value, frame_index, output_offset, "argc ");
1234 if (trace_scope_ != nullptr) { 1234 if (trace_scope_ != nullptr) {
1235 PrintF(trace_scope_->file(), "(%d)\n", height - 1); 1235 PrintF(trace_scope_->file(), "(%d)\n", height - 1);
1236 } 1236 }
1237 1237
1238 // The original constructor. 1238 // The new target.
1239 output_offset -= kPointerSize; 1239 output_offset -= kPointerSize;
1240 value = reinterpret_cast<intptr_t>(isolate_->heap()->undefined_value()); 1240 value = reinterpret_cast<intptr_t>(isolate_->heap()->undefined_value());
1241 output_frame->SetFrameSlot(output_offset, value); 1241 output_frame->SetFrameSlot(output_offset, value);
1242 DebugPrintOutputSlot(value, frame_index, output_offset, "new.target\n"); 1242 DebugPrintOutputSlot(value, frame_index, output_offset, "new.target\n");
1243 1243
1244 // The newly allocated object was passed as receiver in the artificial 1244 // The newly allocated object was passed as receiver in the artificial
1245 // constructor stub environment created by HEnvironment::CopyForInlining(). 1245 // constructor stub environment created by HEnvironment::CopyForInlining().
1246 output_offset -= kPointerSize; 1246 output_offset -= kPointerSize;
1247 value = output_frame->GetFrameSlot(output_frame_size - kPointerSize); 1247 value = output_frame->GetFrameSlot(output_frame_size - kPointerSize);
1248 output_frame->SetFrameSlot(output_offset, value); 1248 output_frame->SetFrameSlot(output_offset, value);
(...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after
3395 DCHECK(value_info->IsMaterializedObject()); 3395 DCHECK(value_info->IsMaterializedObject());
3396 3396
3397 value_info->value_ = 3397 value_info->value_ =
3398 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3398 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3399 } 3399 }
3400 } 3400 }
3401 } 3401 }
3402 3402
3403 } // namespace internal 3403 } // namespace internal
3404 } // namespace v8 3404 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698