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

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

Issue 7001025: Remove support for branch hints from the IA32 and X64 assembler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void SmiUntag(Register reg, Label* is_smi) { 258 void SmiUntag(Register reg, Label* is_smi) {
259 ASSERT(kSmiTagSize == 1); 259 ASSERT(kSmiTagSize == 1);
260 sar(reg, kSmiTagSize); 260 sar(reg, kSmiTagSize);
261 ASSERT(kSmiTag == 0); 261 ASSERT(kSmiTag == 0);
262 j(not_carry, is_smi); 262 j(not_carry, is_smi);
263 } 263 }
264 264
265 // Jump the register contains a smi. 265 // Jump the register contains a smi.
266 inline void JumpIfSmi(Register value, Label* smi_label) { 266 inline void JumpIfSmi(Register value, Label* smi_label) {
267 test(value, Immediate(kSmiTagMask)); 267 test(value, Immediate(kSmiTagMask));
268 j(zero, smi_label, not_taken); 268 j(zero, smi_label);
269 } 269 }
270 // Jump if register contain a non-smi. 270 // Jump if register contain a non-smi.
271 inline void JumpIfNotSmi(Register value, Label* not_smi_label) { 271 inline void JumpIfNotSmi(Register value, Label* not_smi_label) {
272 test(value, Immediate(kSmiTagMask)); 272 test(value, Immediate(kSmiTagMask));
273 j(not_zero, not_smi_label, not_taken); 273 j(not_zero, not_smi_label);
274 } 274 }
275 275
276 // Assumes input is a heap object. 276 // Assumes input is a heap object.
277 void JumpIfNotNumber(Register reg, TypeInfo info, Label* on_not_number); 277 void JumpIfNotNumber(Register reg, TypeInfo info, Label* on_not_number);
278 278
279 // Assumes input is a heap number. Jumps on things out of range. Also jumps 279 // Assumes input is a heap number. Jumps on things out of range. Also jumps
280 // on the min negative int32. Ignores frational parts. 280 // on the min negative int32. Ignores frational parts.
281 void ConvertToInt32(Register dst, 281 void ConvertToInt32(Register dst,
282 Register src, // Can be the same as dst. 282 Register src, // Can be the same as dst.
283 Register scratch, // Can be no_reg or dst, but not src. 283 Register scratch, // Can be no_reg or dst, but not src.
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 } \ 755 } \
756 masm-> 756 masm->
757 #else 757 #else
758 #define ACCESS_MASM(masm) masm-> 758 #define ACCESS_MASM(masm) masm->
759 #endif 759 #endif
760 760
761 761
762 } } // namespace v8::internal 762 } } // namespace v8::internal
763 763
764 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 764 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698