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/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 CHECK_GE(param_count, 0); | 1448 CHECK_GE(param_count, 0); |
1449 | 1449 |
1450 int height_in_bytes = kPointerSize * (param_count + stack_param_count) + | 1450 int height_in_bytes = kPointerSize * (param_count + stack_param_count) + |
1451 sizeof(Arguments) + kPointerSize; | 1451 sizeof(Arguments) + kPointerSize; |
1452 int fixed_frame_size = StandardFrameConstants::kFixedFrameSize; | 1452 int fixed_frame_size = StandardFrameConstants::kFixedFrameSize; |
1453 int input_frame_size = input_->GetFrameSize(); | 1453 int input_frame_size = input_->GetFrameSize(); |
1454 int output_frame_size = height_in_bytes + fixed_frame_size; | 1454 int output_frame_size = height_in_bytes + fixed_frame_size; |
1455 if (trace_scope_ != NULL) { | 1455 if (trace_scope_ != NULL) { |
1456 PrintF(trace_scope_->file(), | 1456 PrintF(trace_scope_->file(), |
1457 " translating %s => StubFailureTrampolineStub, height=%d\n", | 1457 " translating %s => StubFailureTrampolineStub, height=%d\n", |
1458 CodeStub::MajorName(static_cast<CodeStub::Major>(major_key), false), | 1458 CodeStub::MajorName(static_cast<CodeStub::Major>(major_key)), |
1459 height_in_bytes); | 1459 height_in_bytes); |
1460 } | 1460 } |
1461 | 1461 |
1462 // The stub failure trampoline is a single frame. | 1462 // The stub failure trampoline is a single frame. |
1463 FrameDescription* output_frame = | 1463 FrameDescription* output_frame = |
1464 new(output_frame_size) FrameDescription(output_frame_size, NULL); | 1464 new(output_frame_size) FrameDescription(output_frame_size, NULL); |
1465 output_frame->SetFrameType(StackFrame::STUB_FAILURE_TRAMPOLINE); | 1465 output_frame->SetFrameType(StackFrame::STUB_FAILURE_TRAMPOLINE); |
1466 CHECK_EQ(frame_index, 0); | 1466 CHECK_EQ(frame_index, 0); |
1467 output_[frame_index] = output_frame; | 1467 output_[frame_index] = output_frame; |
1468 | 1468 |
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3412 DCHECK(value_info->IsMaterializedObject()); | 3412 DCHECK(value_info->IsMaterializedObject()); |
3413 | 3413 |
3414 value_info->value_ = | 3414 value_info->value_ = |
3415 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3415 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3416 } | 3416 } |
3417 } | 3417 } |
3418 } | 3418 } |
3419 | 3419 |
3420 } // namespace internal | 3420 } // namespace internal |
3421 } // namespace v8 | 3421 } // namespace v8 |
OLD | NEW |