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

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

Issue 9722020: Enable snapshots on MIPS. This is based on (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 Address RelocInfo::target_address_address() { 228 Address RelocInfo::target_address_address() {
229 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY 229 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY
230 || rmode_ == EMBEDDED_OBJECT 230 || rmode_ == EMBEDDED_OBJECT
231 || rmode_ == EXTERNAL_REFERENCE); 231 || rmode_ == EXTERNAL_REFERENCE);
232 return reinterpret_cast<Address>(pc_); 232 return reinterpret_cast<Address>(pc_);
233 } 233 }
234 234
235 235
236 int RelocInfo::target_address_size() { 236 int RelocInfo::target_address_size() {
237 if (IsCodedSpecially()) { 237 if (IsCodedSpecially()) {
238 return Assembler::kCallTargetSize; 238 return Assembler::kSpecialTargetSize;
239 } else { 239 } else {
240 return Assembler::kExternalTargetSize; 240 return kPointerSize;
241 } 241 }
242 } 242 }
243 243
244 244
245 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { 245 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) {
246 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); 246 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY);
247 if (IsCodeTarget(rmode_)) { 247 if (IsCodeTarget(rmode_)) {
248 Assembler::set_target_address_at(pc_, target); 248 Assembler::set_target_address_at(pc_, target);
249 Object* target_code = Code::GetCodeFromTargetAddress(target); 249 Object* target_code = Code::GetCodeFromTargetAddress(target);
250 if (mode == UPDATE_WRITE_BARRIER && host() != NULL) { 250 if (mode == UPDATE_WRITE_BARRIER && host() != NULL) {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 ASSERT(len_ == 1 || len_ == 2); 481 ASSERT(len_ == 1 || len_ == 2);
482 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 482 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
483 *p = disp; 483 *p = disp;
484 len_ += sizeof(int32_t); 484 len_ += sizeof(int32_t);
485 } 485 }
486 486
487 487
488 } } // namespace v8::internal 488 } } // namespace v8::internal
489 489
490 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 490 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/cctest.status » ('j') | test/cctest/cctest.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698