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

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

Issue 7003054: Fix bug with GVN on array loads. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: fixed lint errors Created 9 years, 6 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
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 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 1648
1649 1649
1650 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1650 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1651 LOperand* object = UseRegister(instr->value()); 1651 LOperand* object = UseRegister(instr->value());
1652 LValueOf* result = new LValueOf(object, TempRegister()); 1652 LValueOf* result = new LValueOf(object, TempRegister());
1653 return AssignEnvironment(DefineSameAsFirst(result)); 1653 return AssignEnvironment(DefineSameAsFirst(result));
1654 } 1654 }
1655 1655
1656 1656
1657 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1657 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1658 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), 1658 LBoundsCheck* result = new LBoundsCheck(UseRegisterAtStart(instr->index()),
1659 Use(instr->length()))); 1659 Use(instr->length()));
1660 return AssignEnvironment(DefineSameAsFirst(result));
1660 } 1661 }
1661 1662
1662 1663
1663 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1664 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1664 // The control instruction marking the end of a block that completed 1665 // The control instruction marking the end of a block that completed
1665 // abruptly (e.g., threw an exception). There is nothing specific to do. 1666 // abruptly (e.g., threw an exception). There is nothing specific to do.
1666 return NULL; 1667 return NULL;
1667 } 1668 }
1668 1669
1669 1670
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 LOperand* key = UseOrConstantAtStart(instr->key()); 2297 LOperand* key = UseOrConstantAtStart(instr->key());
2297 LOperand* object = UseOrConstantAtStart(instr->object()); 2298 LOperand* object = UseOrConstantAtStart(instr->object());
2298 LIn* result = new LIn(key, object); 2299 LIn* result = new LIn(key, object);
2299 return MarkAsCall(DefineFixed(result, eax), instr); 2300 return MarkAsCall(DefineFixed(result, eax), instr);
2300 } 2301 }
2301 2302
2302 2303
2303 } } // namespace v8::internal 2304 } } // namespace v8::internal
2304 2305
2305 #endif // V8_TARGET_ARCH_IA32 2306 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698