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

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

Issue 14371005: Various improvements regarding the way we print code code comments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback 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-arm.cc ('k') | src/arm/lithium-codegen-arm.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 74
75 // Simple accessors. 75 // Simple accessors.
76 MacroAssembler* masm() const { return masm_; } 76 MacroAssembler* masm() const { return masm_; }
77 CompilationInfo* info() const { return info_; } 77 CompilationInfo* info() const { return info_; }
78 Isolate* isolate() const { return info_->isolate(); } 78 Isolate* isolate() const { return info_->isolate(); }
79 Factory* factory() const { return isolate()->factory(); } 79 Factory* factory() const { return isolate()->factory(); }
80 Heap* heap() const { return isolate()->heap(); } 80 Heap* heap() const { return isolate()->heap(); }
81 Zone* zone() const { return zone_; } 81 Zone* zone() const { return zone_; }
82 82
83 // TODO(svenpanne) Use this consistently.
84 int LookupDestination(int block_id) const {
85 return chunk()->LookupDestination(block_id);
86 }
87
88 bool IsNextEmittedBlock(int block_id) const {
89 return LookupDestination(block_id) == GetNextEmittedBlock();
90 }
91
83 bool NeedsEagerFrame() const { 92 bool NeedsEagerFrame() const {
84 return GetStackSlotCount() > 0 || 93 return GetStackSlotCount() > 0 ||
85 info()->is_non_deferred_calling() || 94 info()->is_non_deferred_calling() ||
86 !info()->IsStub() || 95 !info()->IsStub() ||
87 info()->requires_frame(); 96 info()->requires_frame();
88 } 97 }
89 bool NeedsDeferredFrame() const { 98 bool NeedsDeferredFrame() const {
90 return !NeedsEagerFrame() && info()->is_deferred_calling(); 99 return !NeedsEagerFrame() && info()->is_deferred_calling();
91 } 100 }
92 101
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool is_generating() const { return status_ == GENERATING; } 198 bool is_generating() const { return status_ == GENERATING; }
190 bool is_done() const { return status_ == DONE; } 199 bool is_done() const { return status_ == DONE; }
191 bool is_aborted() const { return status_ == ABORTED; } 200 bool is_aborted() const { return status_ == ABORTED; }
192 201
193 StrictModeFlag strict_mode_flag() const { 202 StrictModeFlag strict_mode_flag() const {
194 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 203 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
195 } 204 }
196 205
197 LPlatformChunk* chunk() const { return chunk_; } 206 LPlatformChunk* chunk() const { return chunk_; }
198 Scope* scope() const { return scope_; } 207 Scope* scope() const { return scope_; }
199 HGraph* graph() const { return chunk_->graph(); } 208 HGraph* graph() const { return chunk()->graph(); }
200 209
201 Register scratch0() { return r9; } 210 Register scratch0() { return r9; }
202 DwVfpRegister double_scratch0() { return kScratchDoubleReg; } 211 DwVfpRegister double_scratch0() { return kScratchDoubleReg; }
203 212
204 int GetNextEmittedBlock(); 213 int GetNextEmittedBlock() const;
205 LInstruction* GetNextInstruction(); 214 LInstruction* GetNextInstruction();
206 215
207 void EmitClassOfTest(Label* if_true, 216 void EmitClassOfTest(Label* if_true,
208 Label* if_false, 217 Label* if_false,
209 Handle<String> class_name, 218 Handle<String> class_name,
210 Register input, 219 Register input,
211 Register temporary, 220 Register temporary,
212 Register temporary2); 221 Register temporary2);
213 222
214 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 223 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 LCodeGen* codegen_; 509 LCodeGen* codegen_;
501 Label entry_; 510 Label entry_;
502 Label exit_; 511 Label exit_;
503 Label* external_exit_; 512 Label* external_exit_;
504 int instruction_index_; 513 int instruction_index_;
505 }; 514 };
506 515
507 } } // namespace v8::internal 516 } } // namespace v8::internal
508 517
509 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 518 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698