OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/frames.h" | 5 #include "src/frames.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 receiver = isolate()->heap()->undefined_value(); | 953 receiver = isolate()->heap()->undefined_value(); |
954 } | 954 } |
955 | 955 |
956 Code* const code = shared_info->code(); | 956 Code* const code = shared_info->code(); |
957 DeoptimizationOutputData* const output_data = | 957 DeoptimizationOutputData* const output_data = |
958 DeoptimizationOutputData::cast(code->deoptimization_data()); | 958 DeoptimizationOutputData::cast(code->deoptimization_data()); |
959 unsigned const entry = | 959 unsigned const entry = |
960 Deoptimizer::GetOutputInfo(output_data, ast_id, shared_info); | 960 Deoptimizer::GetOutputInfo(output_data, ast_id, shared_info); |
961 unsigned const pc_offset = | 961 unsigned const pc_offset = |
962 FullCodeGenerator::PcField::decode(entry) + Code::kHeaderSize; | 962 FullCodeGenerator::PcField::decode(entry) + Code::kHeaderSize; |
963 DCHECK_NE(0, pc_offset); | 963 DCHECK_NE(0U, pc_offset); |
964 | 964 |
965 FrameSummary summary(receiver, function, code, pc_offset, is_constructor); | 965 FrameSummary summary(receiver, function, code, pc_offset, is_constructor); |
966 frames->Add(summary); | 966 frames->Add(summary); |
967 is_constructor = false; | 967 is_constructor = false; |
968 } else if (opcode == Translation::CONSTRUCT_STUB_FRAME) { | 968 } else if (opcode == Translation::CONSTRUCT_STUB_FRAME) { |
969 // The next encountered JS_FRAME will be marked as a constructor call. | 969 // The next encountered JS_FRAME will be marked as a constructor call. |
970 it.Skip(Translation::NumberOfOperandsFor(opcode)); | 970 it.Skip(Translation::NumberOfOperandsFor(opcode)); |
971 DCHECK(!is_constructor); | 971 DCHECK(!is_constructor); |
972 is_constructor = true; | 972 is_constructor = true; |
973 } else { | 973 } else { |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1536 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1537 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1537 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1538 list.Add(frame, zone); | 1538 list.Add(frame, zone); |
1539 } | 1539 } |
1540 return list.ToVector(); | 1540 return list.ToVector(); |
1541 } | 1541 } |
1542 | 1542 |
1543 | 1543 |
1544 } // namespace internal | 1544 } // namespace internal |
1545 } // namespace v8 | 1545 } // namespace v8 |
OLD | NEW |