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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 6066010: Merge 6095:6198 from bleeding_edge to experimental/gc. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 11 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/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 1171
1172 movq(dst, kScratchRegister); 1172 movq(dst, kScratchRegister);
1173 xor_(dst, src2); 1173 xor_(dst, src2);
1174 j(positive, &zero_correct_result); // Result was positive zero. 1174 j(positive, &zero_correct_result); // Result was positive zero.
1175 1175
1176 bind(&failure); // Reused failure exit, restores src1. 1176 bind(&failure); // Reused failure exit, restores src1.
1177 movq(src1, kScratchRegister); 1177 movq(src1, kScratchRegister);
1178 jmp(on_not_smi_result); 1178 jmp(on_not_smi_result);
1179 1179
1180 bind(&zero_correct_result); 1180 bind(&zero_correct_result);
1181 xor_(dst, dst); 1181 Set(dst, 0);
1182 1182
1183 bind(&correct_result); 1183 bind(&correct_result);
1184 } else { 1184 } else {
1185 SmiToInteger64(dst, src1); 1185 SmiToInteger64(dst, src1);
1186 imul(dst, src2); 1186 imul(dst, src2);
1187 j(overflow, on_not_smi_result); 1187 j(overflow, on_not_smi_result);
1188 // Check for negative zero result. If product is zero, and one 1188 // Check for negative zero result. If product is zero, and one
1189 // argument is negative, go to slow case. 1189 // argument is negative, go to slow case.
1190 NearLabel correct_result; 1190 NearLabel correct_result;
1191 testq(dst, dst); 1191 testq(dst, dst);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 Jump(adaptor, RelocInfo::CODE_TARGET); 1749 Jump(adaptor, RelocInfo::CODE_TARGET);
1750 } 1750 }
1751 bind(&invoke); 1751 bind(&invoke);
1752 } 1752 }
1753 } 1753 }
1754 1754
1755 1755
1756 } } // namespace v8::internal 1756 } } // namespace v8::internal
1757 1757
1758 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1758 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698