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

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

Issue 6461021: Add a genuine unary minus instruction to 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
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 1246
1247 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) { 1247 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) {
1248 ASSERT(instr->value()->representation().IsInteger32()); 1248 ASSERT(instr->value()->representation().IsInteger32());
1249 ASSERT(instr->representation().IsInteger32()); 1249 ASSERT(instr->representation().IsInteger32());
1250 LOperand* input = UseRegisterAtStart(instr->value()); 1250 LOperand* input = UseRegisterAtStart(instr->value());
1251 LBitNotI* result = new LBitNotI(input); 1251 LBitNotI* result = new LBitNotI(input);
1252 return DefineSameAsFirst(result); 1252 return DefineSameAsFirst(result);
1253 } 1253 }
1254 1254
1255 1255
1256 LInstruction* LChunkBuilder::DoNeg(HNeg* instr) {
1257 Abort("Unimplemented: %s", "DoNeg");
1258 return NULL;
1259 }
1260
1261
1256 LInstruction* LChunkBuilder::DoBitOr(HBitOr* instr) { 1262 LInstruction* LChunkBuilder::DoBitOr(HBitOr* instr) {
1257 return DoBit(Token::BIT_OR, instr); 1263 return DoBit(Token::BIT_OR, instr);
1258 } 1264 }
1259 1265
1260 1266
1261 LInstruction* LChunkBuilder::DoBitXor(HBitXor* instr) { 1267 LInstruction* LChunkBuilder::DoBitXor(HBitXor* instr) {
1262 return DoBit(Token::BIT_XOR, instr); 1268 return DoBit(Token::BIT_XOR, instr);
1263 } 1269 }
1264 1270
1265 1271
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 1862
1857 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1863 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1858 HEnvironment* outer = current_block_->last_environment()->outer(); 1864 HEnvironment* outer = current_block_->last_environment()->outer();
1859 current_block_->UpdateEnvironment(outer); 1865 current_block_->UpdateEnvironment(outer);
1860 return NULL; 1866 return NULL;
1861 } 1867 }
1862 1868
1863 } } // namespace v8::internal 1869 } } // namespace v8::internal
1864 1870
1865 #endif // V8_TARGET_ARCH_X64 1871 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698