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

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

Issue 6364007: ARM: Implement DoInstanceOfAndBranch in the lithium code generator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add fixed input register allocation. Created 9 years, 10 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 | « 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 1005
1006 LOperand* temp = TempRegister(); 1006 LOperand* temp = TempRegister();
1007 return new LIsObjectAndBranch(UseRegisterAtStart(compare->value()), temp); 1007 return new LIsObjectAndBranch(UseRegisterAtStart(compare->value()), temp);
1008 } else if (v->IsCompareJSObjectEq()) { 1008 } else if (v->IsCompareJSObjectEq()) {
1009 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v); 1009 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v);
1010 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()), 1010 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()),
1011 UseRegisterAtStart(compare->right())); 1011 UseRegisterAtStart(compare->right()));
1012 } else if (v->IsInstanceOf()) { 1012 } else if (v->IsInstanceOf()) {
1013 HInstanceOf* instance_of = HInstanceOf::cast(v); 1013 HInstanceOf* instance_of = HInstanceOf::cast(v);
1014 LInstruction* result = 1014 LInstruction* result =
1015 new LInstanceOfAndBranch(Use(instance_of->left()), 1015 new LInstanceOfAndBranch(UseFixed(instance_of->left(), r0),
1016 Use(instance_of->right())); 1016 UseFixed(instance_of->right(), r1));
1017 return MarkAsCall(result, instr); 1017 return MarkAsCall(result, instr);
1018 } else if (v->IsTypeofIs()) { 1018 } else if (v->IsTypeofIs()) {
1019 HTypeofIs* typeof_is = HTypeofIs::cast(v); 1019 HTypeofIs* typeof_is = HTypeofIs::cast(v);
1020 return new LTypeofIsAndBranch(UseTempRegister(typeof_is->value())); 1020 return new LTypeofIsAndBranch(UseTempRegister(typeof_is->value()));
1021 } else { 1021 } else {
1022 if (v->IsConstant()) { 1022 if (v->IsConstant()) {
1023 if (HConstant::cast(v)->handle()->IsTrue()) { 1023 if (HConstant::cast(v)->handle()->IsTrue()) {
1024 return new LGoto(instr->FirstSuccessor()->block_id()); 1024 return new LGoto(instr->FirstSuccessor()->block_id());
1025 } else if (HConstant::cast(v)->handle()->IsFalse()) { 1025 } else if (HConstant::cast(v)->handle()->IsFalse()) {
1026 return new LGoto(instr->SecondSuccessor()->block_id()); 1026 return new LGoto(instr->SecondSuccessor()->block_id());
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 1842
1843 1843
1844 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1844 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1845 HEnvironment* outer = current_block_->last_environment()->outer(); 1845 HEnvironment* outer = current_block_->last_environment()->outer();
1846 current_block_->UpdateEnvironment(outer); 1846 current_block_->UpdateEnvironment(outer);
1847 return NULL; 1847 return NULL;
1848 } 1848 }
1849 1849
1850 1850
1851 } } // namespace v8::internal 1851 } } // 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