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