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

Side by Side Diff: src/deoptimizer.h

Issue 2274273003: [deoptimizer] Remove obsolete BailoutType switches. (Closed)
Patch Set: Created 4 years, 3 months 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 | « no previous file | src/deoptimizer.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 #ifndef V8_DEOPTIMIZER_H_ 5 #ifndef V8_DEOPTIMIZER_H_
6 #define V8_DEOPTIMIZER_H_ 6 #define V8_DEOPTIMIZER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/deoptimize-reason.h" 9 #include "src/deoptimize-reason.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 needs_frame == other.needs_frame; 376 needs_frame == other.needs_frame;
377 } 377 }
378 378
379 Label label; 379 Label label;
380 Address address; 380 Address address;
381 DeoptInfo deopt_info; 381 DeoptInfo deopt_info;
382 Deoptimizer::BailoutType bailout_type; 382 Deoptimizer::BailoutType bailout_type;
383 bool needs_frame; 383 bool needs_frame;
384 }; 384 };
385 385
386 static bool TraceEnabledFor(BailoutType deopt_type, 386 static bool TraceEnabledFor(StackFrame::Type frame_type);
387 StackFrame::Type frame_type);
388 static const char* MessageFor(BailoutType type); 387 static const char* MessageFor(BailoutType type);
389 388
390 int output_count() const { return output_count_; } 389 int output_count() const { return output_count_; }
391 390
392 Handle<JSFunction> function() const { return Handle<JSFunction>(function_); } 391 Handle<JSFunction> function() const { return Handle<JSFunction>(function_); }
393 Handle<Code> compiled_code() const { return Handle<Code>(compiled_code_); } 392 Handle<Code> compiled_code() const { return Handle<Code>(compiled_code_); }
394 BailoutType bailout_type() const { return bailout_type_; } 393 BailoutType bailout_type() const { return bailout_type_; }
395 394
396 // Number of created JS frames. Not all created frames are necessarily JS. 395 // Number of created JS frames. Not all created frames are necessarily JS.
397 int jsframe_count() const { return jsframe_count_; } 396 int jsframe_count() const { return jsframe_count_; }
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 std::vector<Handle<Object> > expression_stack_; 1062 std::vector<Handle<Object> > expression_stack_;
1064 int source_position_; 1063 int source_position_;
1065 1064
1066 friend class Deoptimizer; 1065 friend class Deoptimizer;
1067 }; 1066 };
1068 1067
1069 } // namespace internal 1068 } // namespace internal
1070 } // namespace v8 1069 } // namespace v8
1071 1070
1072 #endif // V8_DEOPTIMIZER_H_ 1071 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698