OLD | NEW |
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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 new target. | |
1239 output_offset -= kPointerSize; | |
1240 value = reinterpret_cast<intptr_t>(isolate_->heap()->undefined_value()); | |
1241 output_frame->SetFrameSlot(output_offset, value); | |
1242 DebugPrintOutputSlot(value, frame_index, output_offset, "new.target\n"); | |
1243 | |
1244 // The newly allocated object was passed as receiver in the artificial | 1238 // The newly allocated object was passed as receiver in the artificial |
1245 // constructor stub environment created by HEnvironment::CopyForInlining(). | 1239 // constructor stub environment created by HEnvironment::CopyForInlining(). |
1246 output_offset -= kPointerSize; | 1240 output_offset -= kPointerSize; |
1247 value = output_frame->GetFrameSlot(output_frame_size - kPointerSize); | 1241 value = output_frame->GetFrameSlot(output_frame_size - kPointerSize); |
1248 output_frame->SetFrameSlot(output_offset, value); | 1242 output_frame->SetFrameSlot(output_offset, value); |
1249 DebugPrintOutputSlot(value, frame_index, output_offset, | 1243 DebugPrintOutputSlot(value, frame_index, output_offset, |
1250 "allocated receiver\n"); | 1244 "allocated receiver\n"); |
1251 | 1245 |
1252 CHECK_EQ(0u, output_offset); | 1246 CHECK_EQ(0u, output_offset); |
1253 | 1247 |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3395 DCHECK(value_info->IsMaterializedObject()); | 3389 DCHECK(value_info->IsMaterializedObject()); |
3396 | 3390 |
3397 value_info->value_ = | 3391 value_info->value_ = |
3398 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3392 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3399 } | 3393 } |
3400 } | 3394 } |
3401 } | 3395 } |
3402 | 3396 |
3403 } // namespace internal | 3397 } // namespace internal |
3404 } // namespace v8 | 3398 } // namespace v8 |
OLD | NEW |