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

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

Issue 25494007: Reland "Hydrogenisation of binops" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 508
509 // Modifies the register even if it does not contain a Smi! 509 // Modifies the register even if it does not contain a Smi!
510 void SmiUntag(Register reg, Label* is_smi) { 510 void SmiUntag(Register reg, Label* is_smi) {
511 STATIC_ASSERT(kSmiTagSize == 1); 511 STATIC_ASSERT(kSmiTagSize == 1);
512 sar(reg, kSmiTagSize); 512 sar(reg, kSmiTagSize);
513 STATIC_ASSERT(kSmiTag == 0); 513 STATIC_ASSERT(kSmiTag == 0);
514 j(not_carry, is_smi); 514 j(not_carry, is_smi);
515 } 515 }
516 516
517 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); 517 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch);
518 void LoadUint32NoSSE2(Register src);
518 519
519 // Jump the register contains a smi. 520 // Jump the register contains a smi.
520 inline void JumpIfSmi(Register value, 521 inline void JumpIfSmi(Register value,
521 Label* smi_label, 522 Label* smi_label,
522 Label::Distance distance = Label::kFar) { 523 Label::Distance distance = Label::kFar) {
523 test(value, Immediate(kSmiTagMask)); 524 test(value, Immediate(kSmiTagMask));
524 j(zero, smi_label, distance); 525 j(zero, smi_label, distance);
525 } 526 }
526 // Jump if the operand is a smi. 527 // Jump if the operand is a smi.
527 inline void JumpIfSmi(Operand value, 528 inline void JumpIfSmi(Operand value,
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 } \ 1100 } \
1100 masm-> 1101 masm->
1101 #else 1102 #else
1102 #define ACCESS_MASM(masm) masm-> 1103 #define ACCESS_MASM(masm) masm->
1103 #endif 1104 #endif
1104 1105
1105 1106
1106 } } // namespace v8::internal 1107 } } // namespace v8::internal
1107 1108
1108 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1109 #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