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

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

Issue 10581014: BoundsCheck should be extended to support array_bounds_checks_elimination (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-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 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 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 LOperand* object = UseFixed(instr->value(), a0); 1599 LOperand* object = UseFixed(instr->value(), a0);
1600 LDateField* result = 1600 LDateField* result =
1601 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); 1601 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1602 return MarkAsCall(DefineFixed(result, v0), instr); 1602 return MarkAsCall(DefineFixed(result, v0), instr);
1603 } 1603 }
1604 1604
1605 1605
1606 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1606 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1607 LOperand* value = UseRegisterAtStart(instr->index()); 1607 LOperand* value = UseRegisterAtStart(instr->index());
1608 LOperand* length = UseRegister(instr->length()); 1608 LOperand* length = UseRegister(instr->length());
1609 if (instr->lower_offset() != 0 || instr->upper_offset() != 0) {
1610 UNIMPLEMENTED();
1611 }
1609 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1612 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1610 } 1613 }
1611 1614
1612 1615
1613 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1616 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1614 // The control instruction marking the end of a block that completed 1617 // The control instruction marking the end of a block that completed
1615 // abruptly (e.g., threw an exception). There is nothing specific to do. 1618 // abruptly (e.g., threw an exception). There is nothing specific to do.
1616 return NULL; 1619 return NULL;
1617 } 1620 }
1618 1621
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 2337
2335 2338
2336 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2339 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2337 LOperand* object = UseRegister(instr->object()); 2340 LOperand* object = UseRegister(instr->object());
2338 LOperand* index = UseRegister(instr->index()); 2341 LOperand* index = UseRegister(instr->index());
2339 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2342 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2340 } 2343 }
2341 2344
2342 2345
2343 } } // namespace v8::internal 2346 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698