OLD | NEW |
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // Store an object to the root table. | 282 // Store an object to the root table. |
283 void StoreRoot(Register source, | 283 void StoreRoot(Register source, |
284 Heap::RootListIndex index); | 284 Heap::RootListIndex index); |
285 void StoreRoot(Register source, | 285 void StoreRoot(Register source, |
286 Heap::RootListIndex index, | 286 Heap::RootListIndex index, |
287 Condition cond, Register src1, const Operand& src2); | 287 Condition cond, Register src1, const Operand& src2); |
288 | 288 |
289 void LoadHeapObject(Register dst, Handle<HeapObject> object); | 289 void LoadHeapObject(Register dst, Handle<HeapObject> object); |
290 | 290 |
291 void LoadObject(Register result, Handle<Object> object) { | 291 void LoadObject(Register result, Handle<Object> object) { |
292 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 292 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
293 if (object->IsHeapObject()) { | 293 if (object->IsHeapObject()) { |
294 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 294 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
295 } else { | 295 } else { |
296 li(result, object); | 296 li(result, object); |
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 // --------------------------------------------------------------------------- | 300 // --------------------------------------------------------------------------- |
301 // GC Support | 301 // GC Support |
302 | 302 |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1582 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1583 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1583 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1584 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1584 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1585 #else | 1585 #else |
1586 #define ACCESS_MASM(masm) masm-> | 1586 #define ACCESS_MASM(masm) masm-> |
1587 #endif | 1587 #endif |
1588 | 1588 |
1589 } } // namespace v8::internal | 1589 } } // namespace v8::internal |
1590 | 1590 |
1591 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1591 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |