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

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

Issue 10701157: Rename LChunkBase to LChunk, LChunk to LPlatformChunk and remove some unneeded explicit constructor… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.h » ('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 28 matching lines...) Expand all
39 namespace v8 { 39 namespace v8 {
40 namespace internal { 40 namespace internal {
41 41
42 // Forward declarations. 42 // Forward declarations.
43 class LDeferredCode; 43 class LDeferredCode;
44 class LGapNode; 44 class LGapNode;
45 class SafepointGenerator; 45 class SafepointGenerator;
46 46
47 class LCodeGen BASE_EMBEDDED { 47 class LCodeGen BASE_EMBEDDED {
48 public: 48 public:
49 LCodeGen(LChunkBase* chunk, MacroAssembler* assembler, CompilationInfo* info) 49 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info)
50 : zone_(info->zone()), 50 : zone_(info->zone()),
51 chunk_(static_cast<LChunk*>(chunk)), 51 chunk_(static_cast<LPlatformChunk*>(chunk)),
52 masm_(assembler), 52 masm_(assembler),
53 info_(info), 53 info_(info),
54 current_block_(-1), 54 current_block_(-1),
55 current_instruction_(-1), 55 current_instruction_(-1),
56 instructions_(chunk->instructions()), 56 instructions_(chunk->instructions()),
57 deoptimizations_(4, info->zone()), 57 deoptimizations_(4, info->zone()),
58 deoptimization_literals_(8, info->zone()), 58 deoptimization_literals_(8, info->zone()),
59 inlined_function_count_(0), 59 inlined_function_count_(0),
60 scope_(info->scope()), 60 scope_(info->scope()),
61 status_(UNUSED), 61 status_(UNUSED),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 bool is_unused() const { return status_ == UNUSED; } 144 bool is_unused() const { return status_ == UNUSED; }
145 bool is_generating() const { return status_ == GENERATING; } 145 bool is_generating() const { return status_ == GENERATING; }
146 bool is_done() const { return status_ == DONE; } 146 bool is_done() const { return status_ == DONE; }
147 bool is_aborted() const { return status_ == ABORTED; } 147 bool is_aborted() const { return status_ == ABORTED; }
148 148
149 StrictModeFlag strict_mode_flag() const { 149 StrictModeFlag strict_mode_flag() const {
150 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 150 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
151 } 151 }
152 152
153 LChunk* chunk() const { return chunk_; } 153 LPlatformChunk* chunk() const { return chunk_; }
154 Scope* scope() const { return scope_; } 154 Scope* scope() const { return scope_; }
155 HGraph* graph() const { return chunk_->graph(); } 155 HGraph* graph() const { return chunk_->graph(); }
156 156
157 int GetNextEmittedBlock(int block); 157 int GetNextEmittedBlock(int block);
158 158
159 void EmitClassOfTest(Label* if_true, 159 void EmitClassOfTest(Label* if_true,
160 Label* if_false, 160 Label* if_false,
161 Handle<String> class_name, 161 Handle<String> class_name,
162 Register input, 162 Register input,
163 Register temporary, 163 Register temporary,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 Register source, 323 Register source,
324 int* offset); 324 int* offset);
325 325
326 void EnsureSpaceForLazyDeopt(); 326 void EnsureSpaceForLazyDeopt();
327 327
328 // Emits code for pushing either a tagged constant, a (non-double) 328 // Emits code for pushing either a tagged constant, a (non-double)
329 // register, or a stack slot operand. 329 // register, or a stack slot operand.
330 void EmitPushTaggedOperand(LOperand* operand); 330 void EmitPushTaggedOperand(LOperand* operand);
331 331
332 Zone* zone_; 332 Zone* zone_;
333 LChunk* const chunk_; 333 LPlatformChunk* const chunk_;
334 MacroAssembler* const masm_; 334 MacroAssembler* const masm_;
335 CompilationInfo* const info_; 335 CompilationInfo* const info_;
336 336
337 int current_block_; 337 int current_block_;
338 int current_instruction_; 338 int current_instruction_;
339 const ZoneList<LInstruction*>* instructions_; 339 const ZoneList<LInstruction*>* instructions_;
340 ZoneList<LEnvironment*> deoptimizations_; 340 ZoneList<LEnvironment*> deoptimizations_;
341 ZoneList<Handle<Object> > deoptimization_literals_; 341 ZoneList<Handle<Object> > deoptimization_literals_;
342 int inlined_function_count_; 342 int inlined_function_count_;
343 Scope* const scope_; 343 Scope* const scope_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 LCodeGen* codegen_; 409 LCodeGen* codegen_;
410 Label entry_; 410 Label entry_;
411 Label exit_; 411 Label exit_;
412 Label* external_exit_; 412 Label* external_exit_;
413 int instruction_index_; 413 int instruction_index_;
414 }; 414 };
415 415
416 } } // namespace v8::internal 416 } } // namespace v8::internal
417 417
418 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 418 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698