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

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

Issue 179813005: Special case the recording of constant pool entries in the slot buffer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove VisitCodeTarget(Address) function Created 6 years, 9 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/assembler-x64.cc ('k') | no next file » | 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 261
262 Address RelocInfo::target_address_address() { 262 Address RelocInfo::target_address_address() {
263 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) 263 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)
264 || rmode_ == EMBEDDED_OBJECT 264 || rmode_ == EMBEDDED_OBJECT
265 || rmode_ == EXTERNAL_REFERENCE); 265 || rmode_ == EXTERNAL_REFERENCE);
266 return reinterpret_cast<Address>(pc_); 266 return reinterpret_cast<Address>(pc_);
267 } 267 }
268 268
269 269
270 Address RelocInfo::constant_pool_entry_address() {
271 UNREACHABLE();
272 return NULL;
273 }
274
275
270 int RelocInfo::target_address_size() { 276 int RelocInfo::target_address_size() {
271 if (IsCodedSpecially()) { 277 if (IsCodedSpecially()) {
272 return Assembler::kSpecialTargetSize; 278 return Assembler::kSpecialTargetSize;
273 } else { 279 } else {
274 return kPointerSize; 280 return kPointerSize;
275 } 281 }
276 } 282 }
277 283
278 284
279 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { 285 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 ASSERT(len_ == 1 || len_ == 2); 557 ASSERT(len_ == 1 || len_ == 2);
552 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 558 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
553 *p = disp; 559 *p = disp;
554 len_ += sizeof(int32_t); 560 len_ += sizeof(int32_t);
555 } 561 }
556 562
557 563
558 } } // namespace v8::internal 564 } } // namespace v8::internal
559 565
560 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 566 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698