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

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

Issue 139233004: Remove the HValueOf instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/x64/lithium-x64.h ('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 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1605 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1606 } 1606 }
1607 1607
1608 1608
1609 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { 1609 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1610 LOperand* object = UseRegisterAtStart(instr->value()); 1610 LOperand* object = UseRegisterAtStart(instr->value());
1611 return DefineAsRegister(new(zone()) LElementsKind(object)); 1611 return DefineAsRegister(new(zone()) LElementsKind(object));
1612 } 1612 }
1613 1613
1614 1614
1615 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1616 LOperand* object = UseRegister(instr->value());
1617 LValueOf* result = new(zone()) LValueOf(object);
1618 return DefineSameAsFirst(result);
1619 }
1620
1621
1622 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1615 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1623 LOperand* object = UseFixed(instr->value(), rax); 1616 LOperand* object = UseFixed(instr->value(), rax);
1624 LDateField* result = new(zone()) LDateField(object, instr->index()); 1617 LDateField* result = new(zone()) LDateField(object, instr->index());
1625 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); 1618 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY);
1626 } 1619 }
1627 1620
1628 1621
1629 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1622 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1630 LOperand* string = UseRegisterAtStart(instr->string()); 1623 LOperand* string = UseRegisterAtStart(instr->string());
1631 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1624 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2448 LOperand* object = UseRegister(instr->object()); 2441 LOperand* object = UseRegister(instr->object());
2449 LOperand* index = UseTempRegister(instr->index()); 2442 LOperand* index = UseTempRegister(instr->index());
2450 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2443 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2451 } 2444 }
2452 2445
2453 2446
2454 } } // namespace v8::internal 2447 } } // namespace v8::internal
2455 2448
2456 #endif // V8_TARGET_ARCH_X64 2449 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698