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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/compiler.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 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 bool is_unused() const { return status_ == UNUSED; } 151 bool is_unused() const { return status_ == UNUSED; }
152 bool is_generating() const { return status_ == GENERATING; } 152 bool is_generating() const { return status_ == GENERATING; }
153 bool is_done() const { return status_ == DONE; } 153 bool is_done() const { return status_ == DONE; }
154 bool is_aborted() const { return status_ == ABORTED; } 154 bool is_aborted() const { return status_ == ABORTED; }
155 155
156 StrictModeFlag strict_mode_flag() const { 156 StrictModeFlag strict_mode_flag() const {
157 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 157 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
158 } 158 }
159 159
160 LChunk* chunk() const { return chunk_; } 160 LPlatformChunk* chunk() const { return chunk_; }
161 Scope* scope() const { return scope_; } 161 Scope* scope() const { return scope_; }
162 HGraph* graph() const { return chunk_->graph(); } 162 HGraph* graph() const { return chunk_->graph(); }
163 163
164 Register scratch0() { return r9; } 164 Register scratch0() { return r9; }
165 DwVfpRegister double_scratch0() { return kScratchDoubleReg; } 165 DwVfpRegister double_scratch0() { return kScratchDoubleReg; }
166 166
167 int GetNextEmittedBlock(int block); 167 int GetNextEmittedBlock(int block);
168 LInstruction* GetNextInstruction(); 168 LInstruction* GetNextInstruction();
169 169
170 void EmitClassOfTest(Label* if_true, 170 void EmitClassOfTest(Label* if_true,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 explicit inline JumpTableEntry(Address entry) 343 explicit inline JumpTableEntry(Address entry)
344 : label(), 344 : label(),
345 address(entry) { } 345 address(entry) { }
346 Label label; 346 Label label;
347 Address address; 347 Address address;
348 }; 348 };
349 349
350 void EnsureSpaceForLazyDeopt(); 350 void EnsureSpaceForLazyDeopt();
351 351
352 Zone* zone_; 352 Zone* zone_;
353 LChunk* const chunk_; 353 LPlatformChunk* const chunk_;
354 MacroAssembler* const masm_; 354 MacroAssembler* const masm_;
355 CompilationInfo* const info_; 355 CompilationInfo* const info_;
356 356
357 int current_block_; 357 int current_block_;
358 int current_instruction_; 358 int current_instruction_;
359 const ZoneList<LInstruction*>* instructions_; 359 const ZoneList<LInstruction*>* instructions_;
360 ZoneList<LEnvironment*> deoptimizations_; 360 ZoneList<LEnvironment*> deoptimizations_;
361 ZoneList<JumpTableEntry> deopt_jump_table_; 361 ZoneList<JumpTableEntry> deopt_jump_table_;
362 ZoneList<Handle<Object> > deoptimization_literals_; 362 ZoneList<Handle<Object> > deoptimization_literals_;
363 int inlined_function_count_; 363 int inlined_function_count_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 LCodeGen* codegen_; 450 LCodeGen* codegen_;
451 Label entry_; 451 Label entry_;
452 Label exit_; 452 Label exit_;
453 Label* external_exit_; 453 Label* external_exit_;
454 int instruction_index_; 454 int instruction_index_;
455 }; 455 };
456 456
457 } } // namespace v8::internal 457 } } // namespace v8::internal
458 458
459 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 459 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698