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

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

Issue 7033008: Fix error in postfix ++ in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo, remove unneeded code. Created 9 years, 7 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/hydrogen-instructions.cc ('k') | src/x64/lithium-x64.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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 return NULL; 1670 return NULL;
1671 } 1671 }
1672 1672
1673 1673
1674 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { 1674 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
1675 LOperand* value = UseFixed(instr->value(), eax); 1675 LOperand* value = UseFixed(instr->value(), eax);
1676 return MarkAsCall(new LThrow(value), instr); 1676 return MarkAsCall(new LThrow(value), instr);
1677 } 1677 }
1678 1678
1679 1679
1680 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) {
1681 // All HForceRepresentation instructions should be eliminated in the
1682 // representation change phase of Hydrogen.
1683 UNREACHABLE();
1684 return NULL;
1685 }
1686
1687
1680 LInstruction* LChunkBuilder::DoChange(HChange* instr) { 1688 LInstruction* LChunkBuilder::DoChange(HChange* instr) {
1681 Representation from = instr->from(); 1689 Representation from = instr->from();
1682 Representation to = instr->to(); 1690 Representation to = instr->to();
1683 if (from.IsTagged()) { 1691 if (from.IsTagged()) {
1684 if (to.IsDouble()) { 1692 if (to.IsDouble()) {
1685 LOperand* value = UseRegister(instr->value()); 1693 LOperand* value = UseRegister(instr->value());
1686 LNumberUntagD* res = new LNumberUntagD(value); 1694 LNumberUntagD* res = new LNumberUntagD(value);
1687 return AssignEnvironment(DefineAsRegister(res)); 1695 return AssignEnvironment(DefineAsRegister(res));
1688 } else { 1696 } else {
1689 ASSERT(to.IsInteger32()); 1697 ASSERT(to.IsInteger32());
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 LOperand* key = UseOrConstantAtStart(instr->key()); 2266 LOperand* key = UseOrConstantAtStart(instr->key());
2259 LOperand* object = UseOrConstantAtStart(instr->object()); 2267 LOperand* object = UseOrConstantAtStart(instr->object());
2260 LIn* result = new LIn(key, object); 2268 LIn* result = new LIn(key, object);
2261 return MarkAsCall(DefineFixed(result, eax), instr); 2269 return MarkAsCall(DefineFixed(result, eax), instr);
2262 } 2270 }
2263 2271
2264 2272
2265 } } // namespace v8::internal 2273 } } // namespace v8::internal
2266 2274
2267 #endif // V8_TARGET_ARCH_IA32 2275 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698