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

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

Issue 582743002: Emit comment with instruction+reason before deopt calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/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_LITHIUM_CODEGEN_H_ 5 #ifndef V8_LITHIUM_CODEGEN_H_
6 #define V8_LITHIUM_CODEGEN_H_ 6 #define V8_LITHIUM_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 15 matching lines...) Expand all
26 MacroAssembler* masm() const { return masm_; } 26 MacroAssembler* masm() const { return masm_; }
27 CompilationInfo* info() const { return info_; } 27 CompilationInfo* info() const { return info_; }
28 Isolate* isolate() const { return info_->isolate(); } 28 Isolate* isolate() const { return info_->isolate(); }
29 Factory* factory() const { return isolate()->factory(); } 29 Factory* factory() const { return isolate()->factory(); }
30 Heap* heap() const { return isolate()->heap(); } 30 Heap* heap() const { return isolate()->heap(); }
31 Zone* zone() const { return zone_; } 31 Zone* zone() const { return zone_; }
32 LPlatformChunk* chunk() const { return chunk_; } 32 LPlatformChunk* chunk() const { return chunk_; }
33 HGraph* graph() const; 33 HGraph* graph() const;
34 34
35 void FPRINTF_CHECKING Comment(const char* format, ...); 35 void FPRINTF_CHECKING Comment(const char* format, ...);
36 void DeoptComment(const char* mnemonic, const char* reason);
36 37
37 bool GenerateBody(); 38 bool GenerateBody();
38 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} 39 virtual void GenerateBodyInstructionPre(LInstruction* instr) {}
39 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} 40 virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
40 41
41 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; 42 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
42 virtual void RecordAndWritePosition(int position) = 0; 43 virtual void RecordAndWritePosition(int position) = 0;
43 44
44 int GetNextEmittedBlock() const; 45 int GetNextEmittedBlock() const;
45 46
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 // Methods for code dependencies. 79 // Methods for code dependencies.
79 void AddDeprecationDependency(Handle<Map> map); 80 void AddDeprecationDependency(Handle<Map> map);
80 void AddStabilityDependency(Handle<Map> map); 81 void AddStabilityDependency(Handle<Map> map);
81 }; 82 };
82 83
83 84
84 } } // namespace v8::internal 85 } } // namespace v8::internal
85 86
86 #endif // V8_LITHIUM_CODEGEN_H_ 87 #endif // V8_LITHIUM_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698