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

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

Issue 140553004: Introduce Assembler::RelocInfoNone static function for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // --------------------------------------------------------------------------- 384 // ---------------------------------------------------------------------------
385 // Smi tagging, untagging and operations on tagged smis. 385 // Smi tagging, untagging and operations on tagged smis.
386 386
387 // Support for constant splitting. 387 // Support for constant splitting.
388 bool IsUnsafeInt(const int32_t x); 388 bool IsUnsafeInt(const int32_t x);
389 void SafeMove(Register dst, Smi* src); 389 void SafeMove(Register dst, Smi* src);
390 void SafePush(Smi* src); 390 void SafePush(Smi* src);
391 391
392 void InitializeSmiConstantRegister() { 392 void InitializeSmiConstantRegister() {
393 Move(kSmiConstantRegister, Smi::FromInt(kSmiConstantRegisterValue), 393 Move(kSmiConstantRegister, Smi::FromInt(kSmiConstantRegisterValue),
394 RelocInfo::NONE64); 394 Assembler::RelocInfoNone());
395 } 395 }
396 396
397 // Conversions between tagged smi values and non-tagged integer values. 397 // Conversions between tagged smi values and non-tagged integer values.
398 398
399 // Tag an integer value. The result must be known to be a valid smi value. 399 // Tag an integer value. The result must be known to be a valid smi value.
400 // Only uses the low 32 bits of the src register. Sets the N and Z flags 400 // Only uses the low 32 bits of the src register. Sets the N and Z flags
401 // based on the value of the resulting smi. 401 // based on the value of the resulting smi.
402 void Integer32ToSmi(Register dst, Register src); 402 void Integer32ToSmi(Register dst, Register src);
403 403
404 // Stores an integer32 value into a memory field that already holds a smi. 404 // Stores an integer32 value into a memory field that already holds a smi.
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 void Jump(ExternalReference ext); 870 void Jump(ExternalReference ext);
871 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 871 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
872 872
873 void Call(Address destination, RelocInfo::Mode rmode); 873 void Call(Address destination, RelocInfo::Mode rmode);
874 void Call(ExternalReference ext); 874 void Call(ExternalReference ext);
875 void Call(Handle<Code> code_object, 875 void Call(Handle<Code> code_object,
876 RelocInfo::Mode rmode, 876 RelocInfo::Mode rmode,
877 TypeFeedbackId ast_id = TypeFeedbackId::None()); 877 TypeFeedbackId ast_id = TypeFeedbackId::None());
878 878
879 // The size of the code generated for different call instructions. 879 // The size of the code generated for different call instructions.
880 int CallSize(Address destination, RelocInfo::Mode rmode) { 880 int CallSize(Address destination) {
881 return kCallSequenceLength; 881 return kCallSequenceLength;
882 } 882 }
883 int CallSize(ExternalReference ext); 883 int CallSize(ExternalReference ext);
884 int CallSize(Handle<Code> code_object) { 884 int CallSize(Handle<Code> code_object) {
885 // Code calls use 32-bit relative addressing. 885 // Code calls use 32-bit relative addressing.
886 return kShortCallInstructionLength; 886 return kShortCallInstructionLength;
887 } 887 }
888 int CallSize(Register target) { 888 int CallSize(Register target) {
889 // Opcode: REX_opt FF /2 m64 889 // Opcode: REX_opt FF /2 m64
890 return (target.high_bit() != 0) ? 3 : 2; 890 return (target.high_bit() != 0) ? 3 : 2;
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 masm->popfq(); \ 1615 masm->popfq(); \
1616 } \ 1616 } \
1617 masm-> 1617 masm->
1618 #else 1618 #else
1619 #define ACCESS_MASM(masm) masm-> 1619 #define ACCESS_MASM(masm) masm->
1620 #endif 1620 #endif
1621 1621
1622 } } // namespace v8::internal 1622 } } // namespace v8::internal
1623 1623
1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698