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

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

Issue 6515010: Add ArithmeticD instruction to x64 Crankshaft. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 836
837 LShiftI* result = new LShiftI(op, left, right, can_deopt); 837 LShiftI* result = new LShiftI(op, left, right, can_deopt);
838 return can_deopt 838 return can_deopt
839 ? AssignEnvironment(DefineSameAsFirst(result)) 839 ? AssignEnvironment(DefineSameAsFirst(result))
840 : DefineSameAsFirst(result); 840 : DefineSameAsFirst(result);
841 } 841 }
842 842
843 843
844 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, 844 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op,
845 HArithmeticBinaryOperation* instr) { 845 HArithmeticBinaryOperation* instr) {
846 Abort("Unimplemented: %s", "DoArithmeticD"); 846 ASSERT(instr->representation().IsDouble());
847 return NULL; 847 ASSERT(instr->left()->representation().IsDouble());
848 ASSERT(instr->right()->representation().IsDouble());
849 if (op == Token::MOD) {
850 Abort("Unimplemented: %s", "DoArithmeticD MOD");
851 }
852 LOperand* left = UseRegisterAtStart(instr->left());
853 LOperand* right = UseRegisterAtStart(instr->right());
854 LArithmeticD* result = new LArithmeticD(op, left, right);
855 return DefineSameAsFirst(result);
848 } 856 }
849 857
850 858
851 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op, 859 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op,
852 HArithmeticBinaryOperation* instr) { 860 HArithmeticBinaryOperation* instr) {
853 ASSERT(op == Token::ADD || 861 ASSERT(op == Token::ADD ||
854 op == Token::DIV || 862 op == Token::DIV ||
855 op == Token::MOD || 863 op == Token::MOD ||
856 op == Token::MUL || 864 op == Token::MUL ||
857 op == Token::SUB); 865 op == Token::SUB);
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1887
1880 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1888 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1881 HEnvironment* outer = current_block_->last_environment()->outer(); 1889 HEnvironment* outer = current_block_->last_environment()->outer();
1882 current_block_->UpdateEnvironment(outer); 1890 current_block_->UpdateEnvironment(outer);
1883 return NULL; 1891 return NULL;
1884 } 1892 }
1885 1893
1886 } } // namespace v8::internal 1894 } } // namespace v8::internal
1887 1895
1888 #endif // V8_TARGET_ARCH_X64 1896 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/lithium-codegen-x64.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698