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

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

Issue 15005008: MIPS: Ensure that soft-deopts don't count against opt_count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nits. Created 7 years, 7 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/deoptimizer-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 // 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 void LoadHeapObject(Register result, Handle<HeapObject> object); 277 void LoadHeapObject(Register result, Handle<HeapObject> object);
278 278
279 void RecordSafepointWithLazyDeopt(LInstruction* instr, 279 void RecordSafepointWithLazyDeopt(LInstruction* instr,
280 SafepointMode safepoint_mode); 280 SafepointMode safepoint_mode);
281 281
282 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 282 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
283 Safepoint::DeoptMode mode); 283 Safepoint::DeoptMode mode);
284 void DeoptimizeIf(Condition cc, 284 void DeoptimizeIf(Condition cc,
285 LEnvironment* environment, 285 LEnvironment* environment,
286 Deoptimizer::BailoutType bailout_type,
287 Register src1 = zero_reg,
288 const Operand& src2 = Operand(zero_reg));
289 void DeoptimizeIf(Condition cc,
290 LEnvironment* environment,
286 Register src1 = zero_reg, 291 Register src1 = zero_reg,
287 const Operand& src2 = Operand(zero_reg)); 292 const Operand& src2 = Operand(zero_reg));
293 void SoftDeoptimize(LEnvironment* environment,
294 Register src1 = zero_reg,
295 const Operand& src2 = Operand(zero_reg));
288 296
289 void AddToTranslation(Translation* translation, 297 void AddToTranslation(Translation* translation,
290 LOperand* op, 298 LOperand* op,
291 bool is_tagged, 299 bool is_tagged,
292 bool is_uint32, 300 bool is_uint32,
293 bool arguments_known, 301 bool arguments_known,
294 int arguments_index, 302 int arguments_index,
295 int arguments_count); 303 int arguments_count);
296 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); 304 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code);
297 void PopulateDeoptimizationData(Handle<Code> code); 305 void PopulateDeoptimizationData(Handle<Code> code);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 LEnvironment* env); 386 LEnvironment* env);
379 387
380 // Emits optimized code to deep-copy the contents of statically known 388 // Emits optimized code to deep-copy the contents of statically known
381 // object graphs (e.g. object literal boilerplate). 389 // object graphs (e.g. object literal boilerplate).
382 void EmitDeepCopy(Handle<JSObject> object, 390 void EmitDeepCopy(Handle<JSObject> object,
383 Register result, 391 Register result,
384 Register source, 392 Register source,
385 int* offset, 393 int* offset,
386 AllocationSiteMode mode); 394 AllocationSiteMode mode);
387 395
388 struct JumpTableEntry {
389 inline JumpTableEntry(Address entry, bool frame, bool is_lazy)
390 : label(),
391 address(entry),
392 needs_frame(frame),
393 is_lazy_deopt(is_lazy) { }
394 Label label;
395 Address address;
396 bool needs_frame;
397 bool is_lazy_deopt;
398 };
399
400 void EnsureSpaceForLazyDeopt(); 396 void EnsureSpaceForLazyDeopt();
401 void DoLoadKeyedExternalArray(LLoadKeyed* instr); 397 void DoLoadKeyedExternalArray(LLoadKeyed* instr);
402 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); 398 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr);
403 void DoLoadKeyedFixedArray(LLoadKeyed* instr); 399 void DoLoadKeyedFixedArray(LLoadKeyed* instr);
404 void DoStoreKeyedExternalArray(LStoreKeyed* instr); 400 void DoStoreKeyedExternalArray(LStoreKeyed* instr);
405 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); 401 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr);
406 void DoStoreKeyedFixedArray(LStoreKeyed* instr); 402 void DoStoreKeyedFixedArray(LStoreKeyed* instr);
407 403
408 Zone* zone_; 404 Zone* zone_;
409 LPlatformChunk* const chunk_; 405 LPlatformChunk* const chunk_;
410 MacroAssembler* const masm_; 406 MacroAssembler* const masm_;
411 CompilationInfo* const info_; 407 CompilationInfo* const info_;
412 408
413 int current_block_; 409 int current_block_;
414 int current_instruction_; 410 int current_instruction_;
415 const ZoneList<LInstruction*>* instructions_; 411 const ZoneList<LInstruction*>* instructions_;
416 ZoneList<LEnvironment*> deoptimizations_; 412 ZoneList<LEnvironment*> deoptimizations_;
417 ZoneList<JumpTableEntry> deopt_jump_table_; 413 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_;
418 ZoneList<Handle<Object> > deoptimization_literals_; 414 ZoneList<Handle<Object> > deoptimization_literals_;
419 ZoneList<Handle<Map> > prototype_maps_; 415 ZoneList<Handle<Map> > prototype_maps_;
420 ZoneList<Handle<Map> > transition_maps_; 416 ZoneList<Handle<Map> > transition_maps_;
421 int inlined_function_count_; 417 int inlined_function_count_;
422 Scope* const scope_; 418 Scope* const scope_;
423 Status status_; 419 Status status_;
424 TranslationBuffer translations_; 420 TranslationBuffer translations_;
425 ZoneList<LDeferredCode*> deferred_; 421 ZoneList<LDeferredCode*> deferred_;
426 int osr_pc_offset_; 422 int osr_pc_offset_;
427 int last_lazy_deopt_pc_; 423 int last_lazy_deopt_pc_;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 LCodeGen* codegen_; 506 LCodeGen* codegen_;
511 Label entry_; 507 Label entry_;
512 Label exit_; 508 Label exit_;
513 Label* external_exit_; 509 Label* external_exit_;
514 int instruction_index_; 510 int instruction_index_;
515 }; 511 };
516 512
517 } } // namespace v8::internal 513 } } // namespace v8::internal
518 514
519 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 515 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698