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

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

Issue 24957003: Add tool to visualize machine code/lithium. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Final polish before review Created 7 years, 2 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 LPlatformChunk* chunk() const { return chunk_; } 55 LPlatformChunk* chunk() const { return chunk_; }
56 HGraph* graph() const; 56 HGraph* graph() const;
57 57
58 void FPRINTF_CHECKING Comment(const char* format, ...); 58 void FPRINTF_CHECKING Comment(const char* format, ...);
59 59
60 bool GenerateBody(); 60 bool GenerateBody();
61 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} 61 virtual void GenerateBodyInstructionPre(LInstruction* instr) {}
62 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} 62 virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
63 63
64 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; 64 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
65 virtual void RecordAndUpdatePosition(int position) = 0; 65 virtual void RecordAndWritePosition(int position) = 0;
66 66
67 int GetNextEmittedBlock() const; 67 int GetNextEmittedBlock() const;
68 68
69 protected: 69 protected:
70 enum Status { 70 enum Status {
71 UNUSED, 71 UNUSED,
72 GENERATING, 72 GENERATING,
73 DONE, 73 DONE,
74 ABORTED 74 ABORTED
75 }; 75 };
(...skipping 11 matching lines...) Expand all
87 bool is_unused() const { return status_ == UNUSED; } 87 bool is_unused() const { return status_ == UNUSED; }
88 bool is_generating() const { return status_ == GENERATING; } 88 bool is_generating() const { return status_ == GENERATING; }
89 bool is_done() const { return status_ == DONE; } 89 bool is_done() const { return status_ == DONE; }
90 bool is_aborted() const { return status_ == ABORTED; } 90 bool is_aborted() const { return status_ == ABORTED; }
91 }; 91 };
92 92
93 93
94 } } // namespace v8::internal 94 } } // namespace v8::internal
95 95
96 #endif // V8_LITHIUM_CODEGEN_H_ 96 #endif // V8_LITHIUM_CODEGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698