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

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

Issue 19528003: Unify SoftDeoptimize and Deoptimize hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 5 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 | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); 747 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value())));
748 } 748 }
749 749
750 750
751 LInstruction* LChunkBuilder::DoEnvironmentMarker(HEnvironmentMarker* instr) { 751 LInstruction* LChunkBuilder::DoEnvironmentMarker(HEnvironmentMarker* instr) {
752 UNREACHABLE(); 752 UNREACHABLE();
753 return NULL; 753 return NULL;
754 } 754 }
755 755
756 756
757 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) {
758 return AssignEnvironment(new(zone()) LDeoptimize);
759 }
760
761
762 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { 757 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) {
763 return AssignEnvironment(new(zone()) LDeoptimize); 758 return AssignEnvironment(new(zone()) LDeoptimize);
764 } 759 }
765 760
766 761
767 LInstruction* LChunkBuilder::DoShift(Token::Value op, 762 LInstruction* LChunkBuilder::DoShift(Token::Value op,
768 HBitwiseBinaryOperation* instr) { 763 HBitwiseBinaryOperation* instr) {
769 if (instr->representation().IsSmiOrTagged()) { 764 if (instr->representation().IsSmiOrTagged()) {
770 ASSERT(instr->left()->representation().IsSmiOrTagged()); 765 ASSERT(instr->left()->representation().IsSmiOrTagged());
771 ASSERT(instr->right()->representation().IsSmiOrTagged()); 766 ASSERT(instr->right()->representation().IsSmiOrTagged());
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2762 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2768 LOperand* object = UseRegister(instr->object()); 2763 LOperand* object = UseRegister(instr->object());
2769 LOperand* index = UseTempRegister(instr->index()); 2764 LOperand* index = UseTempRegister(instr->index());
2770 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2765 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2771 } 2766 }
2772 2767
2773 2768
2774 } } // namespace v8::internal 2769 } } // namespace v8::internal
2775 2770
2776 #endif // V8_TARGET_ARCH_IA32 2771 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698