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

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

Issue 24704005: Merged r16393 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Created 7 years, 2 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/version.cc ('k') | test/cctest/test-api.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 int32_t right_operand = ToInteger32(LConstantOperand::cast(right)); 1400 int32_t right_operand = ToInteger32(LConstantOperand::cast(right));
1401 switch (instr->op()) { 1401 switch (instr->op()) {
1402 case Token::BIT_AND: 1402 case Token::BIT_AND:
1403 __ andl(ToRegister(left), Immediate(right_operand)); 1403 __ andl(ToRegister(left), Immediate(right_operand));
1404 break; 1404 break;
1405 case Token::BIT_OR: 1405 case Token::BIT_OR:
1406 __ orl(ToRegister(left), Immediate(right_operand)); 1406 __ orl(ToRegister(left), Immediate(right_operand));
1407 break; 1407 break;
1408 case Token::BIT_XOR: 1408 case Token::BIT_XOR:
1409 if (right_operand == int32_t(~0)) { 1409 if (right_operand == int32_t(~0)) {
1410 __ not_(ToRegister(left)); 1410 __ notl(ToRegister(left));
1411 } else { 1411 } else {
1412 __ xorl(ToRegister(left), Immediate(right_operand)); 1412 __ xorl(ToRegister(left), Immediate(right_operand));
1413 } 1413 }
1414 break; 1414 break;
1415 default: 1415 default:
1416 UNREACHABLE(); 1416 UNREACHABLE();
1417 break; 1417 break;
1418 } 1418 }
1419 } else if (right->IsStackSlot()) { 1419 } else if (right->IsStackSlot()) {
1420 switch (instr->op()) { 1420 switch (instr->op()) {
(...skipping 4090 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 FixedArray::kHeaderSize - kPointerSize)); 5511 FixedArray::kHeaderSize - kPointerSize));
5512 __ bind(&done); 5512 __ bind(&done);
5513 } 5513 }
5514 5514
5515 5515
5516 #undef __ 5516 #undef __
5517 5517
5518 } } // namespace v8::internal 5518 } } // namespace v8::internal
5519 5519
5520 #endif // V8_TARGET_ARCH_X64 5520 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698