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

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

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
7 7
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/lithium-codegen.h" 9 #include "src/lithium-codegen.h"
10 #include "src/mips/lithium-gap-resolver-mips.h" 10 #include "src/mips/lithium-gap-resolver-mips.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 163 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
164 164
165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 165 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
166 166
167 void SaveCallerDoubles(); 167 void SaveCallerDoubles();
168 void RestoreCallerDoubles(); 168 void RestoreCallerDoubles();
169 169
170 // Code generation passes. Returns true if code generation should 170 // Code generation passes. Returns true if code generation should
171 // continue. 171 // continue.
172 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE; 172 void GenerateBodyInstructionPre(LInstruction* instr) OVERRIDE;
173 bool GeneratePrologue(); 173 bool GeneratePrologue();
174 bool GenerateDeferredCode(); 174 bool GenerateDeferredCode();
175 bool GenerateDeoptJumpTable(); 175 bool GenerateDeoptJumpTable();
176 bool GenerateSafepointTable(); 176 bool GenerateSafepointTable();
177 177
178 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 178 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
179 void GenerateOsrPrologue(); 179 void GenerateOsrPrologue();
180 180
181 enum SafepointMode { 181 enum SafepointMode {
182 RECORD_SIMPLE_SAFEPOINT, 182 RECORD_SIMPLE_SAFEPOINT,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void RecordSafepoint(LPointerMap* pointers, 263 void RecordSafepoint(LPointerMap* pointers,
264 Safepoint::Kind kind, 264 Safepoint::Kind kind,
265 int arguments, 265 int arguments,
266 Safepoint::DeoptMode mode); 266 Safepoint::DeoptMode mode);
267 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); 267 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode);
268 void RecordSafepoint(Safepoint::DeoptMode mode); 268 void RecordSafepoint(Safepoint::DeoptMode mode);
269 void RecordSafepointWithRegisters(LPointerMap* pointers, 269 void RecordSafepointWithRegisters(LPointerMap* pointers,
270 int arguments, 270 int arguments,
271 Safepoint::DeoptMode mode); 271 Safepoint::DeoptMode mode);
272 272
273 void RecordAndWritePosition(int position) V8_OVERRIDE; 273 void RecordAndWritePosition(int position) OVERRIDE;
274 274
275 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 275 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
276 void EmitGoto(int block); 276 void EmitGoto(int block);
277 277
278 // EmitBranch expects to be the last instruction of a block. 278 // EmitBranch expects to be the last instruction of a block.
279 template<class InstrType> 279 template<class InstrType>
280 void EmitBranch(InstrType instr, 280 void EmitBranch(InstrType instr,
281 Condition condition, 281 Condition condition,
282 Register src1, 282 Register src1,
283 const Operand& src2); 283 const Operand& src2);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // All registers are clobbered. 349 // All registers are clobbered.
350 // If 'remainder' is no_reg, it is not computed. 350 // If 'remainder' is no_reg, it is not computed.
351 void EmitSignedIntegerDivisionByConstant(Register result, 351 void EmitSignedIntegerDivisionByConstant(Register result,
352 Register dividend, 352 Register dividend,
353 int32_t divisor, 353 int32_t divisor,
354 Register remainder, 354 Register remainder,
355 Register scratch, 355 Register scratch,
356 LEnvironment* environment); 356 LEnvironment* environment);
357 357
358 358
359 void EnsureSpaceForLazyDeopt(int space_needed) V8_OVERRIDE; 359 void EnsureSpaceForLazyDeopt(int space_needed) OVERRIDE;
360 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 360 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
361 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 361 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
362 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 362 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
363 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 363 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
364 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 364 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
365 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 365 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
366 366
367 template <class T> 367 template <class T>
368 void EmitVectorLoadICRegisters(T* instr); 368 void EmitVectorLoadICRegisters(T* instr);
369 369
370 ZoneList<LEnvironment*> deoptimizations_; 370 ZoneList<LEnvironment*> deoptimizations_;
371 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; 371 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_;
372 ZoneList<Handle<Object> > deoptimization_literals_; 372 ZoneList<Handle<Object> > deoptimization_literals_;
373 int inlined_function_count_; 373 int inlined_function_count_;
374 Scope* const scope_; 374 Scope* const scope_;
375 TranslationBuffer translations_; 375 TranslationBuffer translations_;
376 ZoneList<LDeferredCode*> deferred_; 376 ZoneList<LDeferredCode*> deferred_;
377 int osr_pc_offset_; 377 int osr_pc_offset_;
378 bool frame_is_built_; 378 bool frame_is_built_;
379 379
380 // Builder that keeps track of safepoints in the code. The table 380 // Builder that keeps track of safepoints in the code. The table
381 // itself is emitted at the end of the generated code. 381 // itself is emitted at the end of the generated code.
382 SafepointTableBuilder safepoints_; 382 SafepointTableBuilder safepoints_;
383 383
384 // Compiler from a set of parallel moves to a sequential list of moves. 384 // Compiler from a set of parallel moves to a sequential list of moves.
385 LGapResolver resolver_; 385 LGapResolver resolver_;
386 386
387 Safepoint::Kind expected_safepoint_kind_; 387 Safepoint::Kind expected_safepoint_kind_;
388 388
389 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 389 class PushSafepointRegistersScope FINAL BASE_EMBEDDED {
390 public: 390 public:
391 explicit PushSafepointRegistersScope(LCodeGen* codegen) 391 explicit PushSafepointRegistersScope(LCodeGen* codegen)
392 : codegen_(codegen) { 392 : codegen_(codegen) {
393 DCHECK(codegen_->info()->is_calling()); 393 DCHECK(codegen_->info()->is_calling());
394 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 394 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
395 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 395 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
396 396
397 StoreRegistersStateStub stub(codegen_->isolate()); 397 StoreRegistersStateStub stub(codegen_->isolate());
398 codegen_->masm_->push(ra); 398 codegen_->masm_->push(ra);
399 codegen_->masm_->CallStub(&stub); 399 codegen_->masm_->CallStub(&stub);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 LCodeGen* codegen_; 444 LCodeGen* codegen_;
445 Label entry_; 445 Label entry_;
446 Label exit_; 446 Label exit_;
447 Label* external_exit_; 447 Label* external_exit_;
448 int instruction_index_; 448 int instruction_index_;
449 }; 449 };
450 450
451 } } // namespace v8::internal 451 } } // namespace v8::internal
452 452
453 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 453 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698