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

Side by Side Diff: src/isolate.cc

Issue 13845014: Fix cctest/test-cpu-profiler/CollectCpuProfile test on Arm and MIPS simulators (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updared OpenBSD Created 7 years, 8 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/isolate.h ('k') | src/platform-cygwin.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 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (per_thread == NULL) { 364 if (per_thread == NULL) {
365 per_thread = AllocatePerIsolateThreadData(thread_id); 365 per_thread = AllocatePerIsolateThreadData(thread_id);
366 } 366 }
367 } 367 }
368 return per_thread; 368 return per_thread;
369 } 369 }
370 370
371 371
372 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThisThread() { 372 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThisThread() {
373 ThreadId thread_id = ThreadId::Current(); 373 ThreadId thread_id = ThreadId::Current();
374 return FindPerThreadDataForThread(thread_id);
375 }
376
377
378 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThread(
379 ThreadId thread_id) {
374 PerIsolateThreadData* per_thread = NULL; 380 PerIsolateThreadData* per_thread = NULL;
375 { 381 {
376 ScopedLock lock(process_wide_mutex_); 382 ScopedLock lock(process_wide_mutex_);
377 per_thread = thread_data_table_->Lookup(this, thread_id); 383 per_thread = thread_data_table_->Lookup(this, thread_id);
378 } 384 }
379 return per_thread; 385 return per_thread;
380 } 386 }
381 387
382 388
383 void Isolate::EnsureDefaultIsolate() { 389 void Isolate::EnsureDefaultIsolate() {
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 2407
2402 #ifdef DEBUG 2408 #ifdef DEBUG
2403 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2409 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2404 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2410 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2405 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2411 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2406 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2412 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2407 #undef ISOLATE_FIELD_OFFSET 2413 #undef ISOLATE_FIELD_OFFSET
2408 #endif 2414 #endif
2409 2415
2410 } } // namespace v8::internal 2416 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698