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

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

Issue 22290005: Move ToI conversions to the MacroAssembler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 3 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-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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // FCmp is similar to integer cmp, but requires unsigned 467 // FCmp is similar to integer cmp, but requires unsigned
468 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). 468 // jcc instructions (je, ja, jae, jb, jbe, je, and jz).
469 void FCmp(); 469 void FCmp();
470 470
471 void ClampUint8(Register reg); 471 void ClampUint8(Register reg);
472 472
473 void ClampDoubleToUint8(XMMRegister input_reg, 473 void ClampDoubleToUint8(XMMRegister input_reg,
474 XMMRegister scratch_reg, 474 XMMRegister scratch_reg,
475 Register result_reg); 475 Register result_reg);
476 476
477 void SlowTruncateToI(Register result_reg, Register input_reg,
478 int offset = HeapNumber::kValueOffset - kHeapObjectTag);
479
480 void TruncateHeapNumberToI(Register result_reg, Register input_reg);
481 void TruncateDoubleToI(Register result_reg, XMMRegister input_reg);
482 void TruncateX87TOSToI(Register result_reg);
483
484 void DoubleToI(Register result_reg, XMMRegister input_reg,
485 XMMRegister scratch, MinusZeroMode minus_zero_mode,
486 Label* conversion_failed, Label::Distance dst = Label::kFar);
487 void X87TOSToI(Register result_reg, MinusZeroMode minus_zero_mode,
488 Label* conversion_failed, Label::Distance dst = Label::kFar);
489
490 void TaggedToI(Register result_reg, Register input_reg, XMMRegister temp,
491 MinusZeroMode minus_zero_mode, Label* lost_precision);
477 492
478 // Smi tagging support. 493 // Smi tagging support.
479 void SmiTag(Register reg) { 494 void SmiTag(Register reg) {
480 STATIC_ASSERT(kSmiTag == 0); 495 STATIC_ASSERT(kSmiTag == 0);
481 STATIC_ASSERT(kSmiTagSize == 1); 496 STATIC_ASSERT(kSmiTagSize == 1);
482 add(reg, reg); 497 add(reg, reg);
483 } 498 }
484 void SmiUntag(Register reg) { 499 void SmiUntag(Register reg) {
485 sar(reg, kSmiTagSize); 500 sar(reg, kSmiTagSize);
486 } 501 }
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 } \ 1075 } \
1061 masm-> 1076 masm->
1062 #else 1077 #else
1063 #define ACCESS_MASM(masm) masm-> 1078 #define ACCESS_MASM(masm) masm->
1064 #endif 1079 #endif
1065 1080
1066 1081
1067 } } // namespace v8::internal 1082 } } // namespace v8::internal
1068 1083
1069 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1084 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698