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

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

Issue 78583002: [v8-dev] ARM: Optimize TypeofIsAndBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments and rebased. Created 7 years 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 | « no previous file | src/arm/lithium-codegen-arm.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 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 LOperand* context = UseFixed(instr->context(), cp); 2563 LOperand* context = UseFixed(instr->context(), cp);
2564 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0)); 2564 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0));
2565 return MarkAsCall(DefineFixed(result, r0), instr); 2565 return MarkAsCall(DefineFixed(result, r0), instr);
2566 } 2566 }
2567 2567
2568 2568
2569 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2569 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2570 LInstruction* goto_instr = CheckElideControlInstruction(instr); 2570 LInstruction* goto_instr = CheckElideControlInstruction(instr);
2571 if (goto_instr != NULL) return goto_instr; 2571 if (goto_instr != NULL) return goto_instr;
2572 2572
2573 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); 2573 return new(zone()) LTypeofIsAndBranch(UseRegister(instr->value()));
2574 } 2574 }
2575 2575
2576 2576
2577 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( 2577 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch(
2578 HIsConstructCallAndBranch* instr) { 2578 HIsConstructCallAndBranch* instr) {
2579 return new(zone()) LIsConstructCallAndBranch(TempRegister()); 2579 return new(zone()) LIsConstructCallAndBranch(TempRegister());
2580 } 2580 }
2581 2581
2582 2582
2583 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 2583 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
2675 2675
2676 2676
2677 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2677 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2678 LOperand* object = UseRegister(instr->object()); 2678 LOperand* object = UseRegister(instr->object());
2679 LOperand* index = UseRegister(instr->index()); 2679 LOperand* index = UseRegister(instr->index());
2680 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2680 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2681 } 2681 }
2682 2682
2683 2683
2684 } } // namespace v8::internal 2684 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698