| OLD | NEW |
| 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 } | 1000 } |
| 1001 Abort("Undefined compare before branch"); | 1001 Abort("Undefined compare before branch"); |
| 1002 return NULL; | 1002 return NULL; |
| 1003 } | 1003 } |
| 1004 } | 1004 } |
| 1005 return new LBranch(UseRegisterAtStart(v)); | 1005 return new LBranch(UseRegisterAtStart(v)); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 | 1008 |
| 1009 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { | 1009 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
| 1010 Abort("Unimplemented: %s", "DoCompareMap"); | 1010 ASSERT(instr->value()->representation().IsTagged()); |
| 1011 return NULL; | 1011 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1012 return new LCmpMapAndBranch(value); |
| 1012 } | 1013 } |
| 1013 | 1014 |
| 1014 | 1015 |
| 1015 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { | 1016 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { |
| 1016 Abort("Unimplemented: %s", "DoArgumentsLength"); | 1017 Abort("Unimplemented: %s", "DoArgumentsLength"); |
| 1017 return NULL; | 1018 return NULL; |
| 1018 } | 1019 } |
| 1019 | 1020 |
| 1020 | 1021 |
| 1021 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 1022 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 } | 1068 } |
| 1068 | 1069 |
| 1069 | 1070 |
| 1070 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { | 1071 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { |
| 1071 return DefineAsRegister(new LGlobalReceiver); | 1072 return DefineAsRegister(new LGlobalReceiver); |
| 1072 } | 1073 } |
| 1073 | 1074 |
| 1074 | 1075 |
| 1075 LInstruction* LChunkBuilder::DoCallConstantFunction( | 1076 LInstruction* LChunkBuilder::DoCallConstantFunction( |
| 1076 HCallConstantFunction* instr) { | 1077 HCallConstantFunction* instr) { |
| 1077 Abort("Unimplemented: %s", "DoCallConstantFunction"); | 1078 argument_count_ -= instr->argument_count(); |
| 1078 return NULL; | 1079 return MarkAsCall(DefineFixed(new LCallConstantFunction, rax), instr); |
| 1079 } | 1080 } |
| 1080 | 1081 |
| 1081 | 1082 |
| 1082 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1083 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
| 1083 Abort("Unimplemented: %s", "DoUnaryMathOperation"); | 1084 Abort("Unimplemented: %s", "DoUnaryMathOperation"); |
| 1084 return NULL; | 1085 return NULL; |
| 1085 } | 1086 } |
| 1086 | 1087 |
| 1087 | 1088 |
| 1088 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { | 1089 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 instr->function(), | 1713 instr->function(), |
| 1713 false, | 1714 false, |
| 1714 undefined); | 1715 undefined); |
| 1715 current_block_->UpdateEnvironment(inner); | 1716 current_block_->UpdateEnvironment(inner); |
| 1716 chunk_->AddInlinedClosure(instr->closure()); | 1717 chunk_->AddInlinedClosure(instr->closure()); |
| 1717 return NULL; | 1718 return NULL; |
| 1718 } | 1719 } |
| 1719 | 1720 |
| 1720 | 1721 |
| 1721 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1722 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1722 Abort("Unimplemented: %s", "DoLeaveInlined"); | 1723 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1724 current_block_->UpdateEnvironment(outer); |
| 1723 return NULL; | 1725 return NULL; |
| 1724 } | 1726 } |
| 1725 | 1727 |
| 1726 } } // namespace v8::internal | 1728 } } // namespace v8::internal |
| 1727 | 1729 |
| 1728 #endif // V8_TARGET_ARCH_X64 | 1730 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |