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

Side by Side Diff: src/arm/assembler-arm.cc

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 (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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 302
303 // ----------------------------------------------------------------------------- 303 // -----------------------------------------------------------------------------
304 // Implementation of Operand and MemOperand 304 // Implementation of Operand and MemOperand
305 // See assembler-arm-inl.h for inlined constructors 305 // See assembler-arm-inl.h for inlined constructors
306 306
307 Operand::Operand(Handle<Object> handle) { 307 Operand::Operand(Handle<Object> handle) {
308 #ifdef DEBUG 308 #ifdef DEBUG
309 Isolate* isolate = Isolate::Current(); 309 Isolate* isolate = Isolate::Current();
310 #endif 310 #endif
311 ALLOW_HANDLE_DEREF(isolate, "using and embedding raw address"); 311 AllowDeferredHandleDereference using_raw_address;
312 rm_ = no_reg; 312 rm_ = no_reg;
313 // Verify all Objects referred by code are NOT in new space. 313 // Verify all Objects referred by code are NOT in new space.
314 Object* obj = *handle; 314 Object* obj = *handle;
315 ASSERT(!isolate->heap()->InNewSpace(obj)); 315 ASSERT(!isolate->heap()->InNewSpace(obj));
316 if (obj->IsHeapObject()) { 316 if (obj->IsHeapObject()) {
317 imm32_ = reinterpret_cast<intptr_t>(handle.location()); 317 imm32_ = reinterpret_cast<intptr_t>(handle.location());
318 rmode_ = RelocInfo::EMBEDDED_OBJECT; 318 rmode_ = RelocInfo::EMBEDDED_OBJECT;
319 } else { 319 } else {
320 // no relocation needed 320 // no relocation needed
321 imm32_ = reinterpret_cast<intptr_t>(obj); 321 imm32_ = reinterpret_cast<intptr_t>(obj);
(...skipping 2779 matching lines...) Expand 10 before | Expand all | Expand 10 after
3101 3101
3102 // Since a constant pool was just emitted, move the check offset forward by 3102 // Since a constant pool was just emitted, move the check offset forward by
3103 // the standard interval. 3103 // the standard interval.
3104 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 3104 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
3105 } 3105 }
3106 3106
3107 3107
3108 } } // namespace v8::internal 3108 } } // namespace v8::internal
3109 3109
3110 #endif // V8_TARGET_ARCH_ARM 3110 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« src/api.cc ('K') | « src/api.cc ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698