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

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

Issue 12226112: Infrastructure classes for evaluating numeric relations between values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed last comments. Created 7 years, 10 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/mips/lithium-mips.cc ('k') | no next file » | 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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 LOperand* string = UseRegister(instr->string()); 1629 LOperand* string = UseRegister(instr->string());
1630 LOperand* index = UseRegister(instr->index()); 1630 LOperand* index = UseRegister(instr->index());
1631 ASSERT(rcx.is_byte_register()); 1631 ASSERT(rcx.is_byte_register());
1632 LOperand* value = UseFixed(instr->value(), rcx); 1632 LOperand* value = UseFixed(instr->value(), rcx);
1633 LSeqStringSetChar* result = 1633 LSeqStringSetChar* result =
1634 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); 1634 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value);
1635 return DefineSameAsFirst(result); 1635 return DefineSameAsFirst(result);
1636 } 1636 }
1637 1637
1638 1638
1639 LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) {
1640 return NULL;
1641 }
1642
1643
1639 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1644 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1640 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1645 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1641 LOperand* length = Use(instr->length()); 1646 LOperand* length = Use(instr->length());
1642 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1647 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1643 } 1648 }
1644 1649
1645 1650
1646 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1651 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1647 // The control instruction marking the end of a block that completed 1652 // The control instruction marking the end of a block that completed
1648 // abruptly (e.g., threw an exception). There is nothing specific to do. 1653 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2396 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2392 LOperand* object = UseRegister(instr->object()); 2397 LOperand* object = UseRegister(instr->object());
2393 LOperand* index = UseTempRegister(instr->index()); 2398 LOperand* index = UseTempRegister(instr->index());
2394 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2399 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2395 } 2400 }
2396 2401
2397 2402
2398 } } // namespace v8::internal 2403 } } // namespace v8::internal
2399 2404
2400 #endif // V8_TARGET_ARCH_X64 2405 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698