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

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

Issue 23665002: Consolidate SMI functions into one area for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // Store the function for the given builtin in the target register. 368 // Store the function for the given builtin in the target register.
369 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 369 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
370 370
371 // Store the code object for the given builtin in the target register. 371 // Store the code object for the given builtin in the target register.
372 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 372 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
373 373
374 374
375 // --------------------------------------------------------------------------- 375 // ---------------------------------------------------------------------------
376 // Smi tagging, untagging and operations on tagged smis. 376 // Smi tagging, untagging and operations on tagged smis.
377 377
378 // Support for constant splitting.
379 bool IsUnsafeInt(const int32_t x);
380 void SafeMove(Register dst, Smi* src);
381 void SafePush(Smi* src);
382
378 void InitializeSmiConstantRegister() { 383 void InitializeSmiConstantRegister() {
379 movq(kSmiConstantRegister, 384 movq(kSmiConstantRegister,
380 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)), 385 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)),
381 RelocInfo::NONE64); 386 RelocInfo::NONE64);
382 } 387 }
383 388
384 // Conversions between tagged smi values and non-tagged integer values. 389 // Conversions between tagged smi values and non-tagged integer values.
385 390
386 // Tag an integer value. The result must be known to be a valid smi value. 391 // Tag an integer value. The result must be known to be a valid smi value.
387 // Only uses the low 32 bits of the src register. Sets the N and Z flags 392 // Only uses the low 32 bits of the src register. Sets the N and Z flags
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // --------------------------------------------------------------------------- 780 // ---------------------------------------------------------------------------
776 // Macro instructions. 781 // Macro instructions.
777 782
778 // Load a register with a long value as efficiently as possible. 783 // Load a register with a long value as efficiently as possible.
779 void Set(Register dst, int64_t x); 784 void Set(Register dst, int64_t x);
780 void Set(const Operand& dst, int64_t x); 785 void Set(const Operand& dst, int64_t x);
781 786
782 // Move if the registers are not identical. 787 // Move if the registers are not identical.
783 void Move(Register target, Register source); 788 void Move(Register target, Register source);
784 789
785 // Support for constant splitting.
786 bool IsUnsafeInt(const int x);
787 void SafeMove(Register dst, Smi* src);
788 void SafePush(Smi* src);
789
790 // Bit-field support. 790 // Bit-field support.
791 void TestBit(const Operand& dst, int bit_index); 791 void TestBit(const Operand& dst, int bit_index);
792 792
793 // Handle support 793 // Handle support
794 void Move(Register dst, Handle<Object> source); 794 void Move(Register dst, Handle<Object> source);
795 void Move(const Operand& dst, Handle<Object> source); 795 void Move(const Operand& dst, Handle<Object> source);
796 void Cmp(Register dst, Handle<Object> source); 796 void Cmp(Register dst, Handle<Object> source);
797 void Cmp(const Operand& dst, Handle<Object> source); 797 void Cmp(const Operand& dst, Handle<Object> source);
798 void Cmp(Register dst, Smi* src); 798 void Cmp(Register dst, Smi* src);
799 void Cmp(const Operand& dst, Smi* src); 799 void Cmp(const Operand& dst, Smi* src);
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 masm->popfq(); \ 1550 masm->popfq(); \
1551 } \ 1551 } \
1552 masm-> 1552 masm->
1553 #else 1553 #else
1554 #define ACCESS_MASM(masm) masm-> 1554 #define ACCESS_MASM(masm) masm->
1555 #endif 1555 #endif
1556 1556
1557 } } // namespace v8::internal 1557 } } // namespace v8::internal
1558 1558
1559 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1559 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698