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

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

Issue 6247005: Add implementations of some more x64 lithium methods.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/arm/lithium-arm.cc ('k') | src/x64/assembler-x64.h » ('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 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 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 Representation r = instr->representation(); 1607 Representation r = instr->representation();
1608 if (r.IsInteger32()) { 1608 if (r.IsInteger32()) {
1609 int32_t value = instr->Integer32Value(); 1609 int32_t value = instr->Integer32Value();
1610 return DefineAsRegister(new LConstantI(value)); 1610 return DefineAsRegister(new LConstantI(value));
1611 } else if (r.IsDouble()) { 1611 } else if (r.IsDouble()) {
1612 double value = instr->DoubleValue(); 1612 double value = instr->DoubleValue();
1613 return DefineAsRegister(new LConstantD(value)); 1613 return DefineAsRegister(new LConstantD(value));
1614 } else if (r.IsTagged()) { 1614 } else if (r.IsTagged()) {
1615 return DefineAsRegister(new LConstantT(instr->handle())); 1615 return DefineAsRegister(new LConstantT(instr->handle()));
1616 } else { 1616 } else {
1617 Abort("unsupported constant of type double"); 1617 UNREACHABLE();
1618 return NULL; 1618 return NULL;
1619 } 1619 }
1620 } 1620 }
1621 1621
1622 1622
1623 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1623 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1624 LLoadGlobal* result = new LLoadGlobal; 1624 LLoadGlobal* result = new LLoadGlobal;
1625 return instr->check_hole_value() 1625 return instr->check_hole_value()
1626 ? AssignEnvironment(DefineAsRegister(result)) 1626 ? AssignEnvironment(DefineAsRegister(result))
1627 : DefineAsRegister(result); 1627 : DefineAsRegister(result);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1874 HEnvironment* outer = current_block_->last_environment()->outer(); 1874 HEnvironment* outer = current_block_->last_environment()->outer();
1875 current_block_->UpdateEnvironment(outer); 1875 current_block_->UpdateEnvironment(outer);
1876 return NULL; 1876 return NULL;
1877 } 1877 }
1878 1878
1879 1879
1880 } } // namespace v8::internal 1880 } } // namespace v8::internal
1881 1881
1882 #endif // V8_TARGET_ARCH_IA32 1882 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698