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

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

Issue 6486033: Revert r6748.... (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
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 } 1028 }
1029 1029
1030 1030
1031 void LCodeGen::DoBitNotI(LBitNotI* instr) { 1031 void LCodeGen::DoBitNotI(LBitNotI* instr) {
1032 LOperand* input = instr->InputAt(0); 1032 LOperand* input = instr->InputAt(0);
1033 ASSERT(input->Equals(instr->result())); 1033 ASSERT(input->Equals(instr->result()));
1034 __ not_(ToRegister(input)); 1034 __ not_(ToRegister(input));
1035 } 1035 }
1036 1036
1037 1037
1038 void LCodeGen::DoNegI(LNegI* instr) {
1039 Register input = ToRegister(instr->value());
1040 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) {
1041 __ test(input, Operand(input));
1042 DeoptimizeIf(zero, instr->environment());
1043 }
1044 __ neg(input);
1045 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) {
1046 DeoptimizeIf(overflow, instr->environment());
1047 }
1048 }
1049
1050
1051 void LCodeGen::DoNegD(LNegD* instr) {
1052 XMMRegister reg = ToDoubleRegister(instr->value());
1053 Register temp = ToRegister(instr->TempAt(0));
1054 __ Set(temp, Immediate(0x80000000));
1055 __ movd(xmm0, Operand(temp));
1056 __ psllq(xmm0, 32);
1057 __ xorpd(reg, xmm0);
1058 }
1059
1060
1061 void LCodeGen::DoNegT(LNegT* instr) {
1062 UnaryOverwriteMode overwrite = UNARY_NO_OVERWRITE;
1063 GenericUnaryOpStub stub(Token::SUB, overwrite, NO_UNARY_FLAGS);
1064 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
1065 }
1066
1067
1068 void LCodeGen::DoThrow(LThrow* instr) { 1038 void LCodeGen::DoThrow(LThrow* instr) {
1069 __ push(ToOperand(instr->InputAt(0))); 1039 __ push(ToOperand(instr->InputAt(0)));
1070 CallRuntime(Runtime::kThrow, 1, instr, false); 1040 CallRuntime(Runtime::kThrow, 1, instr, false);
1071 1041
1072 if (FLAG_debug_code) { 1042 if (FLAG_debug_code) {
1073 Comment("Unreachable code."); 1043 Comment("Unreachable code.");
1074 __ int3(); 1044 __ int3();
1075 } 1045 }
1076 } 1046 }
1077 1047
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 ASSERT(osr_pc_offset_ == -1); 3767 ASSERT(osr_pc_offset_ == -1);
3798 osr_pc_offset_ = masm()->pc_offset(); 3768 osr_pc_offset_ = masm()->pc_offset();
3799 } 3769 }
3800 3770
3801 3771
3802 #undef __ 3772 #undef __
3803 3773
3804 } } // namespace v8::internal 3774 } } // namespace v8::internal
3805 3775
3806 #endif // V8_TARGET_ARCH_IA32 3776 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698