| OLD | NEW |
| 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 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 DONT_TRACK_ALLOCATION_SITE, 0); | 2322 DONT_TRACK_ALLOCATION_SITE, 0); |
| 2323 stub.InitializeInterfaceDescriptor( | 2323 stub.InitializeInterfaceDescriptor( |
| 2324 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); | 2324 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); |
| 2325 BinaryOpStub::InitializeForIsolate(this); | 2325 BinaryOpStub::InitializeForIsolate(this); |
| 2326 CompareNilICStub::InitializeForIsolate(this); | 2326 CompareNilICStub::InitializeForIsolate(this); |
| 2327 ToBooleanStub::InitializeForIsolate(this); | 2327 ToBooleanStub::InitializeForIsolate(this); |
| 2328 ArrayConstructorStubBase::InstallDescriptors(this); | 2328 ArrayConstructorStubBase::InstallDescriptors(this); |
| 2329 InternalArrayConstructorStubBase::InstallDescriptors(this); | 2329 InternalArrayConstructorStubBase::InstallDescriptors(this); |
| 2330 FastNewClosureStub::InstallDescriptors(this); | 2330 FastNewClosureStub::InstallDescriptors(this); |
| 2331 NumberToStringStub::InstallDescriptors(this); | 2331 NumberToStringStub::InstallDescriptors(this); |
| 2332 NewStringAddStub::InstallDescriptors(this); |
| 2332 } | 2333 } |
| 2333 | 2334 |
| 2334 if (FLAG_sweeper_threads > 0) { | 2335 if (FLAG_sweeper_threads > 0) { |
| 2335 sweeper_thread_ = new SweeperThread*[FLAG_sweeper_threads]; | 2336 sweeper_thread_ = new SweeperThread*[FLAG_sweeper_threads]; |
| 2336 for (int i = 0; i < FLAG_sweeper_threads; i++) { | 2337 for (int i = 0; i < FLAG_sweeper_threads; i++) { |
| 2337 sweeper_thread_[i] = new SweeperThread(this); | 2338 sweeper_thread_[i] = new SweeperThread(this); |
| 2338 sweeper_thread_[i]->Start(); | 2339 sweeper_thread_[i]->Start(); |
| 2339 } | 2340 } |
| 2340 } | 2341 } |
| 2341 | 2342 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 return hstatistics(); | 2460 return hstatistics(); |
| 2460 } | 2461 } |
| 2461 | 2462 |
| 2462 | 2463 |
| 2463 HTracer* Isolate::GetHTracer() { | 2464 HTracer* Isolate::GetHTracer() { |
| 2464 if (htracer() == NULL) set_htracer(new HTracer(id())); | 2465 if (htracer() == NULL) set_htracer(new HTracer(id())); |
| 2465 return htracer(); | 2466 return htracer(); |
| 2466 } | 2467 } |
| 2467 | 2468 |
| 2468 | 2469 |
| 2470 CodeTracer* Isolate::GetCodeTracer() { |
| 2471 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); |
| 2472 return code_tracer(); |
| 2473 } |
| 2474 |
| 2475 |
| 2469 Map* Isolate::get_initial_js_array_map(ElementsKind kind) { | 2476 Map* Isolate::get_initial_js_array_map(ElementsKind kind) { |
| 2470 Context* native_context = context()->native_context(); | 2477 Context* native_context = context()->native_context(); |
| 2471 Object* maybe_map_array = native_context->js_array_maps(); | 2478 Object* maybe_map_array = native_context->js_array_maps(); |
| 2472 if (!maybe_map_array->IsUndefined()) { | 2479 if (!maybe_map_array->IsUndefined()) { |
| 2473 Object* maybe_transitioned_map = | 2480 Object* maybe_transitioned_map = |
| 2474 FixedArray::cast(maybe_map_array)->get(kind); | 2481 FixedArray::cast(maybe_map_array)->get(kind); |
| 2475 if (!maybe_transitioned_map->IsUndefined()) { | 2482 if (!maybe_transitioned_map->IsUndefined()) { |
| 2476 return Map::cast(maybe_transitioned_map); | 2483 return Map::cast(maybe_transitioned_map); |
| 2477 } | 2484 } |
| 2478 } | 2485 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2517 | 2524 |
| 2518 #ifdef DEBUG | 2525 #ifdef DEBUG |
| 2519 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2526 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2520 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2527 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2521 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2528 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2522 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2529 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2523 #undef ISOLATE_FIELD_OFFSET | 2530 #undef ISOLATE_FIELD_OFFSET |
| 2524 #endif | 2531 #endif |
| 2525 | 2532 |
| 2526 } } // namespace v8::internal | 2533 } } // namespace v8::internal |
| OLD | NEW |