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

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

Issue 6928060: Merge Label and NearLabel (Closed) Base URL: https://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
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, Label::kFar, not_taken);
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, Label::kFar, not_taken);
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } \ 781 } \
782 masm-> 782 masm->
783 #else 783 #else
784 #define ACCESS_MASM(masm) masm-> 784 #define ACCESS_MASM(masm) masm->
785 #endif 785 #endif
786 786
787 787
788 } } // namespace v8::internal 788 } } // namespace v8::internal
789 789
790 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 790 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698