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

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

Issue 11695006: Cleanup RelocInfo::NONE usage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 47
48 void Assembler::emitl(uint32_t x) { 48 void Assembler::emitl(uint32_t x) {
49 Memory::uint32_at(pc_) = x; 49 Memory::uint32_at(pc_) = x;
50 pc_ += sizeof(uint32_t); 50 pc_ += sizeof(uint32_t);
51 } 51 }
52 52
53 53
54 void Assembler::emitq(uint64_t x, RelocInfo::Mode rmode) { 54 void Assembler::emitq(uint64_t x, RelocInfo::Mode rmode) {
55 Memory::uint64_at(pc_) = x; 55 Memory::uint64_at(pc_) = x;
56 if (rmode != RelocInfo::NONE) { 56 if (!RelocInfo::IsNone(rmode)) {
57 RecordRelocInfo(rmode, x); 57 RecordRelocInfo(rmode, x);
58 } 58 }
59 pc_ += sizeof(uint64_t); 59 pc_ += sizeof(uint64_t);
60 } 60 }
61 61
62 62
63 void Assembler::emitw(uint16_t x) { 63 void Assembler::emitw(uint16_t x) {
64 Memory::uint16_at(pc_) = x; 64 Memory::uint16_at(pc_) = x;
65 pc_ += sizeof(uint16_t); 65 pc_ += sizeof(uint16_t);
66 } 66 }
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 ASSERT(len_ == 1 || len_ == 2); 512 ASSERT(len_ == 1 || len_ == 2);
513 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 513 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
514 *p = disp; 514 *p = disp;
515 len_ += sizeof(int32_t); 515 len_ += sizeof(int32_t);
516 } 516 }
517 517
518 518
519 } } // namespace v8::internal 519 } } // namespace v8::internal
520 520
521 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 521 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698