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

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

Issue 11695006: Cleanup RelocInfo::NONE usage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 12 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
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // Store the code object for the given builtin in the target register. 366 // Store the code object for the given builtin in the target register.
367 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 367 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
368 368
369 369
370 // --------------------------------------------------------------------------- 370 // ---------------------------------------------------------------------------
371 // Smi tagging, untagging and operations on tagged smis. 371 // Smi tagging, untagging and operations on tagged smis.
372 372
373 void InitializeSmiConstantRegister() { 373 void InitializeSmiConstantRegister() {
374 movq(kSmiConstantRegister, 374 movq(kSmiConstantRegister,
375 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)), 375 reinterpret_cast<uint64_t>(Smi::FromInt(kSmiConstantRegisterValue)),
376 RelocInfo::NONE); 376 RelocInfo::NONE64);
377 } 377 }
378 378
379 // Conversions between tagged smi values and non-tagged integer values. 379 // Conversions between tagged smi values and non-tagged integer values.
380 380
381 // Tag an integer value. The result must be known to be a valid smi value. 381 // Tag an integer value. The result must be known to be a valid smi value.
382 // Only uses the low 32 bits of the src register. Sets the N and Z flags 382 // Only uses the low 32 bits of the src register. Sets the N and Z flags
383 // based on the value of the resulting smi. 383 // based on the value of the resulting smi.
384 void Integer32ToSmi(Register dst, Register src); 384 void Integer32ToSmi(Register dst, Register src);
385 385
386 // Stores an integer32 value into a memory field that already holds a smi. 386 // Stores an integer32 value into a memory field that already holds a smi.
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 masm->popfq(); \ 1484 masm->popfq(); \
1485 } \ 1485 } \
1486 masm-> 1486 masm->
1487 #else 1487 #else
1488 #define ACCESS_MASM(masm) masm-> 1488 #define ACCESS_MASM(masm) masm->
1489 #endif 1489 #endif
1490 1490
1491 } } // namespace v8::internal 1491 } } // namespace v8::internal
1492 1492
1493 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1493 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698