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

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

Issue 39543003: Refactor loading a pointer and loading an integer64 into a register instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make movq(Register, int64_t) an assembler instruction for 64-bit integer only" Created 7 years, 1 month 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
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 // --------------------------------------------------------------------------- 378 // ---------------------------------------------------------------------------
379 // Smi tagging, untagging and operations on tagged smis. 379 // Smi tagging, untagging and operations on tagged smis.
380 380
381 // Support for constant splitting. 381 // Support for constant splitting.
382 bool IsUnsafeInt(const int32_t x); 382 bool IsUnsafeInt(const int32_t x);
383 void SafeMove(Register dst, Smi* src); 383 void SafeMove(Register dst, Smi* src);
384 void SafePush(Smi* src); 384 void SafePush(Smi* src);
385 385
386 void InitializeSmiConstantRegister() { 386 void InitializeSmiConstantRegister() {
387 movq(kSmiConstantRegister, 387 movq(kSmiConstantRegister, Smi::FromInt(kSmiConstantRegisterValue),
388 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)),
389 RelocInfo::NONE64); 388 RelocInfo::NONE64);
390 } 389 }
391 390
392 // Conversions between tagged smi values and non-tagged integer values. 391 // Conversions between tagged smi values and non-tagged integer values.
393 392
394 // Tag an integer value. The result must be known to be a valid smi value. 393 // Tag an integer value. The result must be known to be a valid smi value.
395 // Only uses the low 32 bits of the src register. Sets the N and Z flags 394 // Only uses the low 32 bits of the src register. Sets the N and Z flags
396 // based on the value of the resulting smi. 395 // based on the value of the resulting smi.
397 void Integer32ToSmi(Register dst, Register src); 396 void Integer32ToSmi(Register dst, Register src);
398 397
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 masm->popfq(); \ 1585 masm->popfq(); \
1587 } \ 1586 } \
1588 masm-> 1587 masm->
1589 #else 1588 #else
1590 #define ACCESS_MASM(masm) masm-> 1589 #define ACCESS_MASM(masm) masm->
1591 #endif 1590 #endif
1592 1591
1593 } } // namespace v8::internal 1592 } } // namespace v8::internal
1594 1593
1595 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1594 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698