| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "ast.h" | 9 #include "src/ast.h" |
| 10 #include "bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| 11 #include "codegen.h" | 11 #include "src/codegen.h" |
| 12 #include "compilation-cache.h" | 12 #include "src/compilation-cache.h" |
| 13 #include "cpu-profiler.h" | 13 #include "src/cpu-profiler.h" |
| 14 #include "debug.h" | 14 #include "src/debug.h" |
| 15 #include "deoptimizer.h" | 15 #include "src/deoptimizer.h" |
| 16 #include "heap-profiler.h" | 16 #include "src/heap-profiler.h" |
| 17 #include "hydrogen.h" | 17 #include "src/hydrogen.h" |
| 18 #include "isolate-inl.h" | 18 #include "src/isolate-inl.h" |
| 19 #include "lithium-allocator.h" | 19 #include "src/lithium-allocator.h" |
| 20 #include "log.h" | 20 #include "src/log.h" |
| 21 #include "messages.h" | 21 #include "src/messages.h" |
| 22 #include "platform.h" | 22 #include "src/platform.h" |
| 23 #include "regexp-stack.h" | 23 #include "src/regexp-stack.h" |
| 24 #include "runtime-profiler.h" | 24 #include "src/runtime-profiler.h" |
| 25 #include "sampler.h" | 25 #include "src/sampler.h" |
| 26 #include "scopeinfo.h" | 26 #include "src/scopeinfo.h" |
| 27 #include "serialize.h" | 27 #include "src/serialize.h" |
| 28 #include "simulator.h" | 28 #include "src/simulator.h" |
| 29 #include "spaces.h" | 29 #include "src/spaces.h" |
| 30 #include "stub-cache.h" | 30 #include "src/stub-cache.h" |
| 31 #include "sweeper-thread.h" | 31 #include "src/sweeper-thread.h" |
| 32 #include "utils/random-number-generator.h" | 32 #include "src/utils/random-number-generator.h" |
| 33 #include "version.h" | 33 #include "src/version.h" |
| 34 #include "vm-state-inl.h" | 34 #include "src/vm-state-inl.h" |
| 35 | 35 |
| 36 | 36 |
| 37 namespace v8 { | 37 namespace v8 { |
| 38 namespace internal { | 38 namespace internal { |
| 39 | 39 |
| 40 Atomic32 ThreadId::highest_thread_id_ = 0; | 40 Atomic32 ThreadId::highest_thread_id_ = 0; |
| 41 | 41 |
| 42 int ThreadId::AllocateThreadId() { | 42 int ThreadId::AllocateThreadId() { |
| 43 int new_id = NoBarrier_AtomicIncrement(&highest_thread_id_, 1); | 43 int new_id = NoBarrier_AtomicIncrement(&highest_thread_id_, 1); |
| 44 return new_id; | 44 return new_id; |
| (...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2313 heap()->set_microtask_queue(heap()->empty_fixed_array()); | 2313 heap()->set_microtask_queue(heap()->empty_fixed_array()); |
| 2314 set_pending_microtask_count(0); | 2314 set_pending_microtask_count(0); |
| 2315 return; | 2315 return; |
| 2316 } | 2316 } |
| 2317 } | 2317 } |
| 2318 } | 2318 } |
| 2319 } | 2319 } |
| 2320 | 2320 |
| 2321 | 2321 |
| 2322 } } // namespace v8::internal | 2322 } } // namespace v8::internal |
| OLD | NEW |