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

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

Issue 14079007: Cleaned up and fixed code comment handling a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Improved printing of block separator on x64/ARM/MIPS, too Created 7 years, 8 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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.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 // 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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_ 28 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_
29 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ 29 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_
30 30
31 #include "ia32/lithium-ia32.h" 31 #include "ia32/lithium-ia32.h"
32 32
33 #include "checks.h" 33 #include "checks.h"
34 #include "deoptimizer.h" 34 #include "deoptimizer.h"
35 #include "ia32/lithium-gap-resolver-ia32.h"
35 #include "safepoint-table.h" 36 #include "safepoint-table.h"
36 #include "scopes.h" 37 #include "scopes.h"
37 #include "ia32/lithium-gap-resolver-ia32.h" 38 #include "v8utils.h"
38 39
39 namespace v8 { 40 namespace v8 {
40 namespace internal { 41 namespace internal {
41 42
42 // Forward declarations. 43 // Forward declarations.
43 class LDeferredCode; 44 class LDeferredCode;
44 class LGapNode; 45 class LGapNode;
45 class SafepointGenerator; 46 class SafepointGenerator;
46 47
47 class LCodeGen BASE_EMBEDDED { 48 class LCodeGen BASE_EMBEDDED {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void EmitClassOfTest(Label* if_true, 195 void EmitClassOfTest(Label* if_true,
195 Label* if_false, 196 Label* if_false,
196 Handle<String> class_name, 197 Handle<String> class_name,
197 Register input, 198 Register input,
198 Register temporary, 199 Register temporary,
199 Register temporary2); 200 Register temporary2);
200 201
201 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 202 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
202 203
203 void Abort(const char* reason); 204 void Abort(const char* reason);
204 void Comment(const char* format, ...); 205 void FPRINTF_CHECKING Comment(const char* format, ...);
205 206
206 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 207 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
207 208
208 // Code generation passes. Returns true if code generation should 209 // Code generation passes. Returns true if code generation should
209 // continue. 210 // continue.
210 bool GeneratePrologue(); 211 bool GeneratePrologue();
211 bool GenerateBody(); 212 bool GenerateBody();
212 bool GenerateDeferredCode(); 213 bool GenerateDeferredCode();
213 bool GenerateJumpTable(); 214 bool GenerateJumpTable();
214 bool GenerateSafepointTable(); 215 bool GenerateSafepointTable();
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 LCodeGen* codegen_; 478 LCodeGen* codegen_;
478 Label entry_; 479 Label entry_;
479 Label exit_; 480 Label exit_;
480 Label* external_exit_; 481 Label* external_exit_;
481 int instruction_index_; 482 int instruction_index_;
482 }; 483 };
483 484
484 } } // namespace v8::internal 485 } } // namespace v8::internal
485 486
486 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 487 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698