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 "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 has_fatal_error_(false), | 1473 has_fatal_error_(false), |
1474 initialized_from_snapshot_(false), | 1474 initialized_from_snapshot_(false), |
1475 cpu_profiler_(NULL), | 1475 cpu_profiler_(NULL), |
1476 heap_profiler_(NULL), | 1476 heap_profiler_(NULL), |
1477 function_entry_hook_(NULL), | 1477 function_entry_hook_(NULL), |
1478 deferred_handles_head_(NULL), | 1478 deferred_handles_head_(NULL), |
1479 optimizing_compiler_thread_(NULL), | 1479 optimizing_compiler_thread_(NULL), |
1480 sweeper_thread_(NULL), | 1480 sweeper_thread_(NULL), |
1481 num_sweeper_threads_(0), | 1481 num_sweeper_threads_(0), |
1482 stress_deopt_count_(0), | 1482 stress_deopt_count_(0), |
1483 next_optimization_id_(0) { | 1483 next_optimization_id_(0), |
| 1484 use_counter_callback_(NULL) { |
1484 id_ = base::NoBarrier_AtomicIncrement(&isolate_counter_, 1); | 1485 id_ = base::NoBarrier_AtomicIncrement(&isolate_counter_, 1); |
1485 TRACE_ISOLATE(constructor); | 1486 TRACE_ISOLATE(constructor); |
1486 | 1487 |
1487 memset(isolate_addresses_, 0, | 1488 memset(isolate_addresses_, 0, |
1488 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); | 1489 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); |
1489 | 1490 |
1490 heap_.isolate_ = this; | 1491 heap_.isolate_ = this; |
1491 stack_guard_.isolate_ = this; | 1492 stack_guard_.isolate_ = this; |
1492 | 1493 |
1493 // ThreadManager is initialized early to support locking an isolate | 1494 // ThreadManager is initialized early to support locking an isolate |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 // The simulator uses a separate JS stack. | 2363 // The simulator uses a separate JS stack. |
2363 Address jssp_address = Simulator::current(isolate_)->get_sp(); | 2364 Address jssp_address = Simulator::current(isolate_)->get_sp(); |
2364 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); | 2365 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); |
2365 if (jssp < stack_guard->real_jslimit()) return true; | 2366 if (jssp < stack_guard->real_jslimit()) return true; |
2366 #endif // USE_SIMULATOR | 2367 #endif // USE_SIMULATOR |
2367 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); | 2368 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
2368 } | 2369 } |
2369 | 2370 |
2370 | 2371 |
2371 } } // namespace v8::internal | 2372 } } // namespace v8::internal |
OLD | NEW |