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

Side by Side Diff: src/frames.cc

Issue 2557693006: [turbofan] Remove --turbo-asm-deoptimization flag. (Closed)
Patch Set: Remove implication. Created 4 years 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/flag-definitions.h ('k') | src/isolate.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 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
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
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
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698