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

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

Issue 145773008: A64: Synchronize with r17104. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // Call a code stub. Generate the code if necessary. 754 // Call a code stub. Generate the code if necessary.
754 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); 755 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None());
755 756
756 // Tail call a code stub (jump). Generate the code if necessary. 757 // Tail call a code stub (jump). Generate the code if necessary.
757 void TailCallStub(CodeStub* stub); 758 void TailCallStub(CodeStub* stub);
758 759
759 // Return from a code stub after popping its arguments. 760 // Return from a code stub after popping its arguments.
760 void StubReturn(int argc); 761 void StubReturn(int argc);
761 762
762 // Call a runtime routine. 763 // Call a runtime routine.
763 void CallRuntime(const Runtime::Function* f, int num_arguments); 764 void CallRuntime(const Runtime::Function* f,
764 void CallRuntimeSaveDoubles(Runtime::FunctionId id); 765 int num_arguments,
766 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
767 void CallRuntimeSaveDoubles(Runtime::FunctionId id) {
768 const Runtime::Function* function = Runtime::FunctionForId(id);
769 CallRuntime(function, function->nargs, kSaveFPRegs);
770 }
765 771
766 // Convenience function: Same as above, but takes the fid instead. 772 // Convenience function: Same as above, but takes the fid instead.
767 void CallRuntime(Runtime::FunctionId id, int num_arguments); 773 void CallRuntime(Runtime::FunctionId id, int num_arguments) {
774 CallRuntime(Runtime::FunctionForId(id), num_arguments);
775 }
768 776
769 // Convenience function: call an external reference. 777 // Convenience function: call an external reference.
770 void CallExternalReference(ExternalReference ref, int num_arguments); 778 void CallExternalReference(ExternalReference ref, int num_arguments);
771 779
772 // Tail call of a runtime routine (jump). 780 // Tail call of a runtime routine (jump).
773 // Like JumpToExternalReference, but also takes care of passing the number 781 // Like JumpToExternalReference, but also takes care of passing the number
774 // of parameters. 782 // of parameters.
775 void TailCallExternalReference(const ExternalReference& ext, 783 void TailCallExternalReference(const ExternalReference& ext,
776 int num_arguments, 784 int num_arguments,
777 int result_size); 785 int result_size);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } \ 1100 } \
1093 masm-> 1101 masm->
1094 #else 1102 #else
1095 #define ACCESS_MASM(masm) masm-> 1103 #define ACCESS_MASM(masm) masm->
1096 #endif 1104 #endif
1097 1105
1098 1106
1099 } } // namespace v8::internal 1107 } } // namespace v8::internal
1100 1108
1101 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1109 #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