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

Side by Side Diff: src/x64/lithium-x64.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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 1619
1620 1620
1621 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1621 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1622 LOperand* object = UseRegister(instr->value()); 1622 LOperand* object = UseRegister(instr->value());
1623 LValueOf* result = new LValueOf(object); 1623 LValueOf* result = new LValueOf(object);
1624 return AssignEnvironment(DefineSameAsFirst(result)); 1624 return AssignEnvironment(DefineSameAsFirst(result));
1625 } 1625 }
1626 1626
1627 1627
1628 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1628 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1629 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), 1629 LBoundsCheck* result = new LBoundsCheck(UseRegisterAtStart(instr->index()),
1630 Use(instr->length()))); 1630 Use(instr->length()));
1631 return AssignEnvironment(DefineSameAsFirst(result));
1631 } 1632 }
1632 1633
1633 1634
1634 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1635 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1635 // The control instruction marking the end of a block that completed 1636 // The control instruction marking the end of a block that completed
1636 // abruptly (e.g., threw an exception). There is nothing specific to do. 1637 // abruptly (e.g., threw an exception). There is nothing specific to do.
1637 return NULL; 1638 return NULL;
1638 } 1639 }
1639 1640
1640 1641
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 LOperand* key = UseOrConstantAtStart(instr->key()); 2235 LOperand* key = UseOrConstantAtStart(instr->key());
2235 LOperand* object = UseOrConstantAtStart(instr->object()); 2236 LOperand* object = UseOrConstantAtStart(instr->object());
2236 LIn* result = new LIn(key, object); 2237 LIn* result = new LIn(key, object);
2237 return MarkAsCall(DefineFixed(result, rax), instr); 2238 return MarkAsCall(DefineFixed(result, rax), instr);
2238 } 2239 }
2239 2240
2240 2241
2241 } } // namespace v8::internal 2242 } } // namespace v8::internal
2242 2243
2243 #endif // V8_TARGET_ARCH_X64 2244 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698