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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 AllowDeferredHandleDereference 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
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_
OLDNEW
« src/api.cc ('K') | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698