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 // interface descriptor is initialized even when stubs have been | 2322 // interface descriptor is initialized even when stubs have been |
2323 // deserialized out of the snapshot without the graph builder. | 2323 // deserialized out of the snapshot without the graph builder. |
2324 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, | 2324 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, |
2325 DONT_TRACK_ALLOCATION_SITE, 0); | 2325 DONT_TRACK_ALLOCATION_SITE, 0); |
2326 stub.InitializeInterfaceDescriptor( | 2326 stub.InitializeInterfaceDescriptor( |
2327 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); | 2327 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); |
2328 CompareNilICStub::InitializeForIsolate(this); | 2328 CompareNilICStub::InitializeForIsolate(this); |
2329 ToBooleanStub::InitializeForIsolate(this); | 2329 ToBooleanStub::InitializeForIsolate(this); |
2330 ArrayConstructorStubBase::InstallDescriptors(this); | 2330 ArrayConstructorStubBase::InstallDescriptors(this); |
2331 InternalArrayConstructorStubBase::InstallDescriptors(this); | 2331 InternalArrayConstructorStubBase::InstallDescriptors(this); |
| 2332 FastNewClosureStub::InstallDescriptors(this); |
2332 } | 2333 } |
2333 | 2334 |
2334 if (FLAG_concurrent_recompilation) optimizing_compiler_thread_.Start(); | 2335 if (FLAG_concurrent_recompilation) optimizing_compiler_thread_.Start(); |
2335 | 2336 |
2336 if (FLAG_marking_threads > 0) { | 2337 if (FLAG_marking_threads > 0) { |
2337 marking_thread_ = new MarkingThread*[FLAG_marking_threads]; | 2338 marking_thread_ = new MarkingThread*[FLAG_marking_threads]; |
2338 for (int i = 0; i < FLAG_marking_threads; i++) { | 2339 for (int i = 0; i < FLAG_marking_threads; i++) { |
2339 marking_thread_[i] = new MarkingThread(this); | 2340 marking_thread_[i] = new MarkingThread(this); |
2340 marking_thread_[i]->Start(); | 2341 marking_thread_[i]->Start(); |
2341 } | 2342 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2527 | 2528 |
2528 #ifdef DEBUG | 2529 #ifdef DEBUG |
2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2530 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2531 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2532 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2533 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2533 #undef ISOLATE_FIELD_OFFSET | 2534 #undef ISOLATE_FIELD_OFFSET |
2534 #endif | 2535 #endif |
2535 | 2536 |
2536 } } // namespace v8::internal | 2537 } } // namespace v8::internal |
OLD | NEW |