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

Side by Side Diff: src/ia32/assembler-ia32-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 Address RelocInfo::target_address_address() { 82 Address RelocInfo::target_address_address() {
83 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY 83 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY
84 || rmode_ == EMBEDDED_OBJECT 84 || rmode_ == EMBEDDED_OBJECT
85 || rmode_ == EXTERNAL_REFERENCE); 85 || rmode_ == EXTERNAL_REFERENCE);
86 return reinterpret_cast<Address>(pc_); 86 return reinterpret_cast<Address>(pc_);
87 } 87 }
88 88
89 89
90 int RelocInfo::target_address_size() { 90 int RelocInfo::target_address_size() {
91 return Assembler::kExternalTargetSize; 91 return Assembler::kSpecialTargetSize;
92 } 92 }
93 93
94 94
95 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { 95 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) {
96 Assembler::set_target_address_at(pc_, target); 96 Assembler::set_target_address_at(pc_, target);
97 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); 97 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY);
98 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) { 98 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) {
99 Object* target_code = Code::GetCodeFromTargetAddress(target); 99 Object* target_code = Code::GetCodeFromTargetAddress(target);
100 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 100 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
101 host(), this, HeapObject::cast(target_code)); 101 host(), this, HeapObject::cast(target_code));
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { 465 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) {
466 // [disp/r] 466 // [disp/r]
467 set_modrm(0, ebp); 467 set_modrm(0, ebp);
468 set_dispr(disp, rmode); 468 set_dispr(disp, rmode);
469 } 469 }
470 470
471 } } // namespace v8::internal 471 } } // namespace v8::internal
472 472
473 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 473 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/mips/assembler-mips.h » ('j') | test/cctest/cctest.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698