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

Side by Side Diff: src/arm/lithium-arm.cc

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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { 696 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) {
697 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); 697 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value())));
698 } 698 }
699 699
700 700
701 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) { 701 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) {
702 return AssignEnvironment(new(zone()) LDeoptimize); 702 return AssignEnvironment(new(zone()) LDeoptimize);
703 } 703 }
704 704
705 705
706 LInstruction* LChunkBuilder::DoDeoptCounter(HDeoptCounter* instr) {
707 return AssignEnvironment(new(zone()) LDeoptCounter(instr->id(),
708 instr->initial_value(),
709 instr->max_value()));
710 }
711
712
713 LInstruction* LChunkBuilder::DoDeoptCounterAdd(HDeoptCounterAdd* instr) {
714 LOperand* temp = TempRegister();
715 LOperand* temp2 = TempRegister();
716 return AssignEnvironment(new(zone()) LDeoptCounterAdd(instr->counter()->id(),
717 instr->delta(),
718 temp,
719 temp2));
720 }
721
722
706 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { 723 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) {
707 return AssignEnvironment(new(zone()) LDeoptimize); 724 return AssignEnvironment(new(zone()) LDeoptimize);
708 } 725 }
709 726
710 727
711 LInstruction* LChunkBuilder::DoShift(Token::Value op, 728 LInstruction* LChunkBuilder::DoShift(Token::Value op,
712 HBitwiseBinaryOperation* instr) { 729 HBitwiseBinaryOperation* instr) {
713 if (instr->representation().IsSmiOrTagged()) { 730 if (instr->representation().IsSmiOrTagged()) {
714 ASSERT(instr->left()->representation().IsSmiOrTagged()); 731 ASSERT(instr->left()->representation().IsSmiOrTagged());
715 ASSERT(instr->right()->representation().IsSmiOrTagged()); 732 ASSERT(instr->right()->representation().IsSmiOrTagged());
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 2643
2627 2644
2628 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2645 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2629 LOperand* object = UseRegister(instr->object()); 2646 LOperand* object = UseRegister(instr->object());
2630 LOperand* index = UseRegister(instr->index()); 2647 LOperand* index = UseRegister(instr->index());
2631 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2648 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2632 } 2649 }
2633 2650
2634 2651
2635 } } // namespace v8::internal 2652 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698