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

Side by Side Diff: src/isolate.cc

Issue 23729006: thread isolate for files starting with 'b' and 'c' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remaining arches Created 7 years, 3 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/ia32/full-codegen-ia32.cc ('k') | src/v8-counters.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 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 } 2232 }
2233 2233
2234 if (create_heap_objects) { 2234 if (create_heap_objects) {
2235 // Terminate the cache array with the sentinel so we can iterate. 2235 // Terminate the cache array with the sentinel so we can iterate.
2236 PushToPartialSnapshotCache(heap_.undefined_value()); 2236 PushToPartialSnapshotCache(heap_.undefined_value());
2237 } 2237 }
2238 2238
2239 InitializeThreadLocal(); 2239 InitializeThreadLocal();
2240 2240
2241 bootstrapper_->Initialize(create_heap_objects); 2241 bootstrapper_->Initialize(create_heap_objects);
2242 builtins_.SetUp(create_heap_objects); 2242 builtins_.SetUp(this, create_heap_objects);
2243 2243
2244 // Only preallocate on the first initialization. 2244 // Only preallocate on the first initialization.
2245 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) { 2245 if (FLAG_preallocate_message_memory && preallocated_message_space_ == NULL) {
2246 // Start the thread which will set aside some memory. 2246 // Start the thread which will set aside some memory.
2247 PreallocatedMemoryThreadStart(); 2247 PreallocatedMemoryThreadStart();
2248 preallocated_message_space_ = 2248 preallocated_message_space_ =
2249 new NoAllocationStringAllocator( 2249 new NoAllocationStringAllocator(
2250 preallocated_memory_thread_->data(), 2250 preallocated_memory_thread_->data(),
2251 preallocated_memory_thread_->length()); 2251 preallocated_memory_thread_->length());
2252 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4); 2252 PreallocatedStorageInit(preallocated_memory_thread_->length() / 4);
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 2527
2528 #ifdef DEBUG 2528 #ifdef DEBUG
2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2533 #undef ISOLATE_FIELD_OFFSET 2533 #undef ISOLATE_FIELD_OFFSET
2534 #endif 2534 #endif
2535 2535
2536 } } // namespace v8::internal 2536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/v8-counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698