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

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

Issue 6371019: x64: Implemented object, array and function literals in lithium codegen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/src/x64
Patch Set: Created 9 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-codegen-x64.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 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 } 1118 }
1119 1119
1120 1120
1121 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1121 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1122 Abort("Unimplemented: %s", "DoCallFunction"); 1122 Abort("Unimplemented: %s", "DoCallFunction");
1123 return NULL; 1123 return NULL;
1124 } 1124 }
1125 1125
1126 1126
1127 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1127 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1128 Abort("Unimplemented: %s", "DoCallRuntime"); 1128 argument_count_ -= instr->argument_count();
1129 return NULL; 1129 return MarkAsCall(DefineFixed(new LCallRuntime, rax), instr);
1130 } 1130 }
1131 1131
1132 1132
1133 LInstruction* LChunkBuilder::DoShr(HShr* instr) { 1133 LInstruction* LChunkBuilder::DoShr(HShr* instr) {
1134 Abort("Unimplemented: %s", "DoShr"); 1134 Abort("Unimplemented: %s", "DoShr");
1135 return NULL; 1135 return NULL;
1136 } 1136 }
1137 1137
1138 1138
1139 LInstruction* LChunkBuilder::DoSar(HSar* instr) { 1139 LInstruction* LChunkBuilder::DoSar(HSar* instr) {
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 } 1590 }
1591 1591
1592 1592
1593 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 1593 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
1594 Abort("Unimplemented: %s", "DoStringLength"); 1594 Abort("Unimplemented: %s", "DoStringLength");
1595 return NULL; 1595 return NULL;
1596 } 1596 }
1597 1597
1598 1598
1599 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 1599 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
1600 Abort("Unimplemented: %s", "DoArrayLiteral"); 1600 return MarkAsCall(DefineFixed(new LArrayLiteral, rax), instr);
1601 return NULL;
1602 } 1601 }
1603 1602
1604 1603
1605 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { 1604 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) {
1606 Abort("Unimplemented: %s", "DoObjectLiteral"); 1605 return MarkAsCall(DefineFixed(new LObjectLiteral, rax), instr);
1607 return NULL;
1608 } 1606 }
1609 1607
1610 1608
1611 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 1609 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
1612 Abort("Unimplemented: %s", "DoRegExpLiteral"); 1610 Abort("Unimplemented: %s", "DoRegExpLiteral");
1613 return NULL; 1611 return NULL;
1614 } 1612 }
1615 1613
1616 1614
1617 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 1615 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
1618 Abort("Unimplemented: %s", "DoFunctionLiteral"); 1616 return MarkAsCall(DefineFixed(new LFunctionLiteral, rax), instr);
1619 return NULL;
1620 } 1617 }
1621 1618
1622 1619
1623 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { 1620 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) {
1624 Abort("Unimplemented: %s", "DoDeleteProperty"); 1621 Abort("Unimplemented: %s", "DoDeleteProperty");
1625 return NULL; 1622 return NULL;
1626 } 1623 }
1627 1624
1628 1625
1629 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 1626 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 1722
1726 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1723 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1727 HEnvironment* outer = current_block_->last_environment()->outer(); 1724 HEnvironment* outer = current_block_->last_environment()->outer();
1728 current_block_->UpdateEnvironment(outer); 1725 current_block_->UpdateEnvironment(outer);
1729 return NULL; 1726 return NULL;
1730 } 1727 }
1731 1728
1732 } } // namespace v8::internal 1729 } } // namespace v8::internal
1733 1730
1734 #endif // V8_TARGET_ARCH_X64 1731 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698