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

Side by Side Diff: src/isolate.cc

Issue 7309013: Fix a few issues breaking cctest/test-lockers/Regress1433: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 stack_guard_.InitThread(lock); 1724 stack_guard_.InitThread(lock);
1725 } 1725 }
1726 1726
1727 // Setup the object heap 1727 // Setup the object heap
1728 ASSERT(!heap_.HasBeenSetup()); 1728 ASSERT(!heap_.HasBeenSetup());
1729 if (!heap_.Setup(create_heap_objects)) { 1729 if (!heap_.Setup(create_heap_objects)) {
1730 V8::SetFatalError(); 1730 V8::SetFatalError();
1731 return false; 1731 return false;
1732 } 1732 }
1733 1733
1734 InitializeThreadLocal();
1735
1734 bootstrapper_->Initialize(create_heap_objects); 1736 bootstrapper_->Initialize(create_heap_objects);
1735 builtins_.Setup(create_heap_objects); 1737 builtins_.Setup(create_heap_objects);
1736 1738
1737 InitializeThreadLocal();
1738
1739 // Only preallocate on the first initialization. 1739 // Only preallocate on the first initialization.
1740 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) { 1740 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) {
1741 // Start the thread which will set aside some memory. 1741 // Start the thread which will set aside some memory.
1742 PreallocatedMemoryThreadStart(); 1742 PreallocatedMemoryThreadStart();
1743 preallocated_message_space_ = 1743 preallocated_message_space_ =
1744 new NoAllocationStringAllocator( 1744 new NoAllocationStringAllocator(
1745 preallocated_memory_thread_->data(), 1745 preallocated_memory_thread_->data(),
1746 preallocated_memory_thread_->length()); 1746 preallocated_memory_thread_->length());
1747 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4); 1747 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4);
1748 } 1748 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1857 1857
1858 #ifdef DEBUG 1858 #ifdef DEBUG
1859 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1859 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1860 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1860 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1861 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1861 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1862 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1862 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1863 #undef ISOLATE_FIELD_OFFSET 1863 #undef ISOLATE_FIELD_OFFSET
1864 #endif 1864 #endif
1865 1865
1866 } } // namespace v8::internal 1866 } } // 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