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

Side by Side Diff: src/mips/lithium-codegen-mips.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/lithium-allocator.cc ('k') | src/mips/lithium-mips.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 25 matching lines...) Expand all
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 // Forward declarations. 40 // Forward declarations.
41 class LDeferredCode; 41 class LDeferredCode;
42 class SafepointGenerator; 42 class SafepointGenerator;
43 43
44 class LCodeGen BASE_EMBEDDED { 44 class LCodeGen BASE_EMBEDDED {
45 public: 45 public:
46 LCodeGen(LChunkBase* chunk, MacroAssembler* assembler, CompilationInfo* info) 46 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info)
47 : zone_(info->zone()), 47 : zone_(info->zone()),
48 chunk_(static_cast<LChunk*>(chunk)), 48 chunk_(static_cast<LPlatformChunk*>(chunk)),
49 masm_(assembler), 49 masm_(assembler),
50 info_(info), 50 info_(info),
51 current_block_(-1), 51 current_block_(-1),
52 current_instruction_(-1), 52 current_instruction_(-1),
53 instructions_(chunk->instructions()), 53 instructions_(chunk->instructions()),
54 deoptimizations_(4, info->zone()), 54 deoptimizations_(4, info->zone()),
55 deopt_jump_table_(4, info->zone()), 55 deopt_jump_table_(4, info->zone()),
56 deoptimization_literals_(8, info->zone()), 56 deoptimization_literals_(8, info->zone()),
57 inlined_function_count_(0), 57 inlined_function_count_(0),
58 scope_(info->scope()), 58 scope_(info->scope()),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 bool is_unused() const { return status_ == UNUSED; } 147 bool is_unused() const { return status_ == UNUSED; }
148 bool is_generating() const { return status_ == GENERATING; } 148 bool is_generating() const { return status_ == GENERATING; }
149 bool is_done() const { return status_ == DONE; } 149 bool is_done() const { return status_ == DONE; }
150 bool is_aborted() const { return status_ == ABORTED; } 150 bool is_aborted() const { return status_ == ABORTED; }
151 151
152 StrictModeFlag strict_mode_flag() const { 152 StrictModeFlag strict_mode_flag() const {
153 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 153 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
154 } 154 }
155 155
156 LChunk* chunk() const { return chunk_; } 156 LPlatformChunk* chunk() const { return chunk_; }
157 Scope* scope() const { return scope_; } 157 Scope* scope() const { return scope_; }
158 HGraph* graph() const { return chunk_->graph(); } 158 HGraph* graph() const { return chunk_->graph(); }
159 159
160 Register scratch0() { return kLithiumScratchReg; } 160 Register scratch0() { return kLithiumScratchReg; }
161 Register scratch1() { return kLithiumScratchReg2; } 161 Register scratch1() { return kLithiumScratchReg2; }
162 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } 162 DoubleRegister double_scratch0() { return kLithiumScratchDouble; }
163 163
164 int GetNextEmittedBlock(int block); 164 int GetNextEmittedBlock(int block);
165 LInstruction* GetNextInstruction(); 165 LInstruction* GetNextInstruction();
166 166
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 explicit inline JumpTableEntry(Address entry) 347 explicit inline JumpTableEntry(Address entry)
348 : label(), 348 : label(),
349 address(entry) { } 349 address(entry) { }
350 Label label; 350 Label label;
351 Address address; 351 Address address;
352 }; 352 };
353 353
354 void EnsureSpaceForLazyDeopt(); 354 void EnsureSpaceForLazyDeopt();
355 355
356 Zone* zone_; 356 Zone* zone_;
357 LChunk* const chunk_; 357 LPlatformChunk* const chunk_;
358 MacroAssembler* const masm_; 358 MacroAssembler* const masm_;
359 CompilationInfo* const info_; 359 CompilationInfo* const info_;
360 360
361 int current_block_; 361 int current_block_;
362 int current_instruction_; 362 int current_instruction_;
363 const ZoneList<LInstruction*>* instructions_; 363 const ZoneList<LInstruction*>* instructions_;
364 ZoneList<LEnvironment*> deoptimizations_; 364 ZoneList<LEnvironment*> deoptimizations_;
365 ZoneList<JumpTableEntry> deopt_jump_table_; 365 ZoneList<JumpTableEntry> deopt_jump_table_;
366 ZoneList<Handle<Object> > deoptimization_literals_; 366 ZoneList<Handle<Object> > deoptimization_literals_;
367 int inlined_function_count_; 367 int inlined_function_count_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 LCodeGen* codegen_; 454 LCodeGen* codegen_;
455 Label entry_; 455 Label entry_;
456 Label exit_; 456 Label exit_;
457 Label* external_exit_; 457 Label* external_exit_;
458 int instruction_index_; 458 int instruction_index_;
459 }; 459 };
460 460
461 } } // namespace v8::internal 461 } } // namespace v8::internal
462 462
463 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 463 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698