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

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

Issue 6594118: Add ArithmeticD(MOD) to x64 optimizing code generator. Minor changes to Arit... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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-codegen-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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 if (can_deopt) AssignEnvironment(result); 866 if (can_deopt) AssignEnvironment(result);
867 return result; 867 return result;
868 } 868 }
869 869
870 870
871 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, 871 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op,
872 HArithmeticBinaryOperation* instr) { 872 HArithmeticBinaryOperation* instr) {
873 ASSERT(instr->representation().IsDouble()); 873 ASSERT(instr->representation().IsDouble());
874 ASSERT(instr->left()->representation().IsDouble()); 874 ASSERT(instr->left()->representation().IsDouble());
875 ASSERT(instr->right()->representation().IsDouble()); 875 ASSERT(instr->right()->representation().IsDouble());
876 ASSERT(op != Token::MOD);
876 LOperand* left = UseRegisterAtStart(instr->left()); 877 LOperand* left = UseRegisterAtStart(instr->left());
877 LOperand* right = UseRegisterAtStart(instr->right()); 878 LOperand* right = UseRegisterAtStart(instr->right());
878 LArithmeticD* result = new LArithmeticD(op, left, right); 879 LArithmeticD* result = new LArithmeticD(op, left, right);
879 return DefineSameAsFirst(result); 880 return DefineSameAsFirst(result);
880 } 881 }
881 882
882 883
883 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op, 884 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op,
884 HArithmeticBinaryOperation* instr) { 885 HArithmeticBinaryOperation* instr) {
885 ASSERT(op == Token::ADD || 886 ASSERT(op == Token::ADD ||
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 2033
2033 2034
2034 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2035 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2035 HEnvironment* outer = current_block_->last_environment()->outer(); 2036 HEnvironment* outer = current_block_->last_environment()->outer();
2036 current_block_->UpdateEnvironment(outer); 2037 current_block_->UpdateEnvironment(outer);
2037 return NULL; 2038 return NULL;
2038 } 2039 }
2039 2040
2040 2041
2041 } } // namespace v8::internal 2042 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698