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

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: 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') | src/arm/lithium-codegen-arm.cc » ('J')
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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 LOperand* context = UseFixed(instr->context(), cp); 2567 LOperand* context = UseFixed(instr->context(), cp);
2568 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0)); 2568 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0));
2569 return MarkAsCall(DefineFixed(result, r0), instr); 2569 return MarkAsCall(DefineFixed(result, r0), instr);
2570 } 2570 }
2571 2571
2572 2572
2573 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2573 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2574 LInstruction* goto_instr = CheckElideControlInstruction(instr); 2574 LInstruction* goto_instr = CheckElideControlInstruction(instr);
2575 if (goto_instr != NULL) return goto_instr; 2575 if (goto_instr != NULL) return goto_instr;
2576 2576
2577 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); 2577 return new(zone()) LTypeofIsAndBranch(UseRegister(instr->value()));
2578 } 2578 }
2579 2579
2580 2580
2581 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( 2581 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch(
2582 HIsConstructCallAndBranch* instr) { 2582 HIsConstructCallAndBranch* instr) {
2583 return new(zone()) LIsConstructCallAndBranch(TempRegister()); 2583 return new(zone()) LIsConstructCallAndBranch(TempRegister());
2584 } 2584 }
2585 2585
2586 2586
2587 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 2587 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 2679
2680 2680
2681 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2681 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2682 LOperand* object = UseRegister(instr->object()); 2682 LOperand* object = UseRegister(instr->object());
2683 LOperand* index = UseRegister(instr->index()); 2683 LOperand* index = UseRegister(instr->index());
2684 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2684 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2685 } 2685 }
2686 2686
2687 2687
2688 } } // namespace v8::internal 2688 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | src/arm/lithium-codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698