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

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

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 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
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 } 127 }
128 128
129 129
130 Object* RelocInfo::target_object() { 130 Object* RelocInfo::target_object() {
131 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 131 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
132 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); 132 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_));
133 } 133 }
134 134
135 135
136 Handle<Object> RelocInfo::target_object_handle(Assembler *origin) { 136 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
137 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 137 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
138 return Handle<Object>(reinterpret_cast<Object**>( 138 return Handle<Object>(reinterpret_cast<Object**>(
139 Assembler::target_address_at(pc_))); 139 Assembler::target_address_at(pc_)));
140 } 140 }
141 141
142 142
143 Object** RelocInfo::target_object_address() { 143 Object** RelocInfo::target_object_address() {
144 // Provide a "natural pointer" to the embedded object, 144 // Provide a "natural pointer" to the embedded object,
145 // which can be de-referenced during heap iteration. 145 // which can be de-referenced during heap iteration.
146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 *reinterpret_cast<Instr*>(pc_) = x; 336 *reinterpret_cast<Instr*>(pc_) = x;
337 pc_ += kInstrSize; 337 pc_ += kInstrSize;
338 CheckTrampolinePoolQuick(); 338 CheckTrampolinePoolQuick();
339 } 339 }
340 340
341 341
342 } } // namespace v8::internal 342 } } // namespace v8::internal
343 343
344 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 344 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698