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 <memory> | 7 #include <memory> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 return Memory::Object_at(GetParameterSlot(index)); | 1060 return Memory::Object_at(GetParameterSlot(index)); |
1061 } | 1061 } |
1062 | 1062 |
1063 int JavaScriptFrame::ComputeParametersCount() const { | 1063 int JavaScriptFrame::ComputeParametersCount() const { |
1064 return GetNumberOfIncomingArguments(); | 1064 return GetNumberOfIncomingArguments(); |
1065 } | 1065 } |
1066 | 1066 |
1067 namespace { | 1067 namespace { |
1068 | 1068 |
1069 bool CannotDeoptFromAsmCode(Code* code, JSFunction* function) { | 1069 bool CannotDeoptFromAsmCode(Code* code, JSFunction* function) { |
1070 return code->is_turbofanned() && function->shared()->asm_function() && | 1070 return code->is_turbofanned() && function->shared()->asm_function(); |
1071 !FLAG_turbo_asm_deoptimization; | |
1072 } | 1071 } |
1073 | 1072 |
1074 } // namespace | 1073 } // namespace |
1075 | 1074 |
1076 FrameSummary::FrameSummary(Object* receiver, JSFunction* function, | 1075 FrameSummary::FrameSummary(Object* receiver, JSFunction* function, |
1077 AbstractCode* abstract_code, int code_offset, | 1076 AbstractCode* abstract_code, int code_offset, |
1078 bool is_constructor, Mode mode) | 1077 bool is_constructor, Mode mode) |
1079 : receiver_(receiver, function->GetIsolate()), | 1078 : receiver_(receiver, function->GetIsolate()), |
1080 function_(function), | 1079 function_(function), |
1081 abstract_code_(abstract_code), | 1080 abstract_code_(abstract_code), |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1981 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1980 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1982 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1981 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1983 list.Add(frame, zone); | 1982 list.Add(frame, zone); |
1984 } | 1983 } |
1985 return list.ToVector(); | 1984 return list.ToVector(); |
1986 } | 1985 } |
1987 | 1986 |
1988 | 1987 |
1989 } // namespace internal | 1988 } // namespace internal |
1990 } // namespace v8 | 1989 } // namespace v8 |
OLD | NEW |