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

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

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: tweak heuristic Created 7 years, 6 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
« 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 // 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 : zone_(info->zone()), 48 : zone_(info->zone()),
49 chunk_(static_cast<LPlatformChunk*>(chunk)), 49 chunk_(static_cast<LPlatformChunk*>(chunk)),
50 masm_(assembler), 50 masm_(assembler),
51 info_(info), 51 info_(info),
52 current_block_(-1), 52 current_block_(-1),
53 current_instruction_(-1), 53 current_instruction_(-1),
54 instructions_(chunk->instructions()), 54 instructions_(chunk->instructions()),
55 deoptimizations_(4, info->zone()), 55 deoptimizations_(4, info->zone()),
56 deopt_jump_table_(4, info->zone()), 56 deopt_jump_table_(4, info->zone()),
57 deoptimization_literals_(8, info->zone()), 57 deoptimization_literals_(8, info->zone()),
58 deopt_counter_cells_(4, info->zone()),
58 prototype_maps_(0, info->zone()), 59 prototype_maps_(0, info->zone()),
59 transition_maps_(0, info->zone()), 60 transition_maps_(0, info->zone()),
60 inlined_function_count_(0), 61 inlined_function_count_(0),
61 scope_(info->scope()), 62 scope_(info->scope()),
62 status_(UNUSED), 63 status_(UNUSED),
63 translations_(info->zone()), 64 translations_(info->zone()),
64 deferred_(8, info->zone()), 65 deferred_(8, info->zone()),
65 osr_pc_offset_(-1), 66 osr_pc_offset_(-1),
66 last_lazy_deopt_pc_(0), 67 last_lazy_deopt_pc_(0),
67 frame_is_built_(false), 68 frame_is_built_(false),
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 298
298 void AddToTranslation(Translation* translation, 299 void AddToTranslation(Translation* translation,
299 LOperand* op, 300 LOperand* op,
300 bool is_tagged, 301 bool is_tagged,
301 bool is_uint32, 302 bool is_uint32,
302 bool arguments_known, 303 bool arguments_known,
303 int arguments_index, 304 int arguments_index,
304 int arguments_count); 305 int arguments_count);
305 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); 306 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code);
306 void PopulateDeoptimizationData(Handle<Code> code); 307 void PopulateDeoptimizationData(Handle<Code> code);
308 void PopulateDeoptCounterCells(Handle<Code> code);
307 int DefineDeoptimizationLiteral(Handle<Object> literal); 309 int DefineDeoptimizationLiteral(Handle<Object> literal);
308 310
309 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); 311 void PopulateDeoptimizationLiteralsWithInlinedFunctions();
310 312
311 Register ToRegister(int index) const; 313 Register ToRegister(int index) const;
312 DoubleRegister ToDoubleRegister(int index) const; 314 DoubleRegister ToDoubleRegister(int index) const;
313 315
314 void EmitIntegerMathAbs(LMathAbs* instr); 316 void EmitIntegerMathAbs(LMathAbs* instr);
315 317
316 // Support for recording safepoint and position information. 318 // Support for recording safepoint and position information.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 LPlatformChunk* const chunk_; 408 LPlatformChunk* const chunk_;
407 MacroAssembler* const masm_; 409 MacroAssembler* const masm_;
408 CompilationInfo* const info_; 410 CompilationInfo* const info_;
409 411
410 int current_block_; 412 int current_block_;
411 int current_instruction_; 413 int current_instruction_;
412 const ZoneList<LInstruction*>* instructions_; 414 const ZoneList<LInstruction*>* instructions_;
413 ZoneList<LEnvironment*> deoptimizations_; 415 ZoneList<LEnvironment*> deoptimizations_;
414 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; 416 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_;
415 ZoneList<Handle<Object> > deoptimization_literals_; 417 ZoneList<Handle<Object> > deoptimization_literals_;
418 ZoneList<LDeoptCounterCell*> deopt_counter_cells_;
416 ZoneList<Handle<Map> > prototype_maps_; 419 ZoneList<Handle<Map> > prototype_maps_;
417 ZoneList<Handle<Map> > transition_maps_; 420 ZoneList<Handle<Map> > transition_maps_;
418 int inlined_function_count_; 421 int inlined_function_count_;
419 Scope* const scope_; 422 Scope* const scope_;
420 Status status_; 423 Status status_;
421 TranslationBuffer translations_; 424 TranslationBuffer translations_;
422 ZoneList<LDeferredCode*> deferred_; 425 ZoneList<LDeferredCode*> deferred_;
423 int osr_pc_offset_; 426 int osr_pc_offset_;
424 int last_lazy_deopt_pc_; 427 int last_lazy_deopt_pc_;
425 bool frame_is_built_; 428 bool frame_is_built_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 LCodeGen* codegen_; 510 LCodeGen* codegen_;
508 Label entry_; 511 Label entry_;
509 Label exit_; 512 Label exit_;
510 Label* external_exit_; 513 Label* external_exit_;
511 int instruction_index_; 514 int instruction_index_;
512 }; 515 };
513 516
514 } } // namespace v8::internal 517 } } // namespace v8::internal
515 518
516 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 519 #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