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

Side by Side Diff: src/crankshaft/lithium-codegen.h

Issue 2161543002: [turbofan] Add support for eager/soft deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do the ports properly Created 4 years, 5 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 | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/lithium-codegen.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 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 #ifndef V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ 5 #ifndef V8_CRANKSHAFT_LITHIUM_CODEGEN_H_
6 #define V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ 6 #define V8_CRANKSHAFT_LITHIUM_CODEGEN_H_
7 7
8 #include "src/bailout-reason.h" 8 #include "src/bailout-reason.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 23 matching lines...) Expand all
34 Heap* heap() const { return isolate()->heap(); } 34 Heap* heap() const { return isolate()->heap(); }
35 Zone* zone() const { return zone_; } 35 Zone* zone() const { return zone_; }
36 LPlatformChunk* chunk() const { return chunk_; } 36 LPlatformChunk* chunk() const { return chunk_; }
37 HGraph* graph() const; 37 HGraph* graph() const;
38 SourcePositionTableBuilder* source_position_table_builder() { 38 SourcePositionTableBuilder* source_position_table_builder() {
39 return &source_position_table_builder_; 39 return &source_position_table_builder_;
40 } 40 }
41 41
42 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); 42 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...);
43 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); 43 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info);
44 static Deoptimizer::DeoptInfo MakeDeoptInfo( 44 static Deoptimizer::DeoptInfo MakeDeoptInfo(LInstruction* instr,
45 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason, int deopt_id); 45 DeoptimizeReason deopt_reason,
46 int deopt_id);
46 47
47 bool GenerateBody(); 48 bool GenerateBody();
48 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} 49 virtual void GenerateBodyInstructionPre(LInstruction* instr) {}
49 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} 50 virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
50 51
51 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; 52 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
52 void RecordAndWritePosition(int position); 53 void RecordAndWritePosition(int position);
53 54
54 int GetNextEmittedBlock() const; 55 int GetNextEmittedBlock() const;
55 56
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Methods for code dependencies. 103 // Methods for code dependencies.
103 void AddDeprecationDependency(Handle<Map> map); 104 void AddDeprecationDependency(Handle<Map> map);
104 void AddStabilityDependency(Handle<Map> map); 105 void AddStabilityDependency(Handle<Map> map);
105 }; 106 };
106 107
107 108
108 } // namespace internal 109 } // namespace internal
109 } // namespace v8 110 } // namespace v8
110 111
111 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ 112 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698