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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 Heap::RootListIndex index, | 155 Heap::RootListIndex index, |
156 Condition cond = al); | 156 Condition cond = al); |
157 // Store an object to the root table. | 157 // Store an object to the root table. |
158 void StoreRoot(Register source, | 158 void StoreRoot(Register source, |
159 Heap::RootListIndex index, | 159 Heap::RootListIndex index, |
160 Condition cond = al); | 160 Condition cond = al); |
161 | 161 |
162 void LoadHeapObject(Register dst, Handle<HeapObject> object); | 162 void LoadHeapObject(Register dst, Handle<HeapObject> object); |
163 | 163 |
164 void LoadObject(Register result, Handle<Object> object) { | 164 void LoadObject(Register result, Handle<Object> object) { |
165 ALLOW_HANDLE_DEREF(isolate(), "heap object check"); | 165 ALLOW_DEFERRED_HANDLE_DEREF(isolate(), "heap object check"); |
166 if (object->IsHeapObject()) { | 166 if (object->IsHeapObject()) { |
167 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 167 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
168 } else { | 168 } else { |
169 Move(result, object); | 169 Move(result, object); |
170 } | 170 } |
171 } | 171 } |
172 | 172 |
173 // --------------------------------------------------------------------------- | 173 // --------------------------------------------------------------------------- |
174 // GC Support | 174 // GC Support |
175 | 175 |
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1446 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1447 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1447 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1448 #else | 1448 #else |
1449 #define ACCESS_MASM(masm) masm-> | 1449 #define ACCESS_MASM(masm) masm-> |
1450 #endif | 1450 #endif |
1451 | 1451 |
1452 | 1452 |
1453 } } // namespace v8::internal | 1453 } } // namespace v8::internal |
1454 | 1454 |
1455 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1455 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |