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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/ia32/lithium-ia32.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 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 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 Representation r = instr->representation(); 1576 Representation r = instr->representation();
1577 if (r.IsInteger32()) { 1577 if (r.IsInteger32()) {
1578 int32_t value = instr->Integer32Value(); 1578 int32_t value = instr->Integer32Value();
1579 return DefineAsRegister(new LConstantI(value)); 1579 return DefineAsRegister(new LConstantI(value));
1580 } else if (r.IsDouble()) { 1580 } else if (r.IsDouble()) {
1581 double value = instr->DoubleValue(); 1581 double value = instr->DoubleValue();
1582 return DefineAsRegister(new LConstantD(value)); 1582 return DefineAsRegister(new LConstantD(value));
1583 } else if (r.IsTagged()) { 1583 } else if (r.IsTagged()) {
1584 return DefineAsRegister(new LConstantT(instr->handle())); 1584 return DefineAsRegister(new LConstantT(instr->handle()));
1585 } else { 1585 } else {
1586 Abort("unsupported constant of type double"); 1586 UNREACHABLE();
1587 return NULL; 1587 return NULL;
1588 } 1588 }
1589 } 1589 }
1590 1590
1591 1591
1592 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1592 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1593 LInstruction* result = new LLoadGlobal(); 1593 LInstruction* result = new LLoadGlobal();
1594 return instr->check_hole_value() 1594 return instr->check_hole_value()
1595 ? AssignEnvironment(DefineAsRegister(result)) 1595 ? AssignEnvironment(DefineAsRegister(result))
1596 : DefineAsRegister(result); 1596 : DefineAsRegister(result);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1836 1836
1837 1837
1838 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1838 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1839 HEnvironment* outer = current_block_->last_environment()->outer(); 1839 HEnvironment* outer = current_block_->last_environment()->outer();
1840 current_block_->UpdateEnvironment(outer); 1840 current_block_->UpdateEnvironment(outer);
1841 return NULL; 1841 return NULL;
1842 } 1842 }
1843 1843
1844 1844
1845 } } // namespace v8::internal 1845 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698