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 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3038 Heap::CreateJSConstructEntryStub(); | 3038 Heap::CreateJSConstructEntryStub(); |
3039 | 3039 |
3040 // Create stubs that should be there, so we don't unexpectedly have to | 3040 // Create stubs that should be there, so we don't unexpectedly have to |
3041 // create them if we need them during the creation of another stub. | 3041 // create them if we need them during the creation of another stub. |
3042 // Stub creation mixes raw pointers and handles in an unsafe manner so | 3042 // Stub creation mixes raw pointers and handles in an unsafe manner so |
3043 // we cannot create stubs while we are creating stubs. | 3043 // we cannot create stubs while we are creating stubs. |
3044 CodeStub::GenerateStubsAheadOfTime(isolate()); | 3044 CodeStub::GenerateStubsAheadOfTime(isolate()); |
3045 } | 3045 } |
3046 | 3046 |
3047 | 3047 |
| 3048 void Heap::CreateStubsRequiringBuiltins() { |
| 3049 HandleScope scope(isolate()); |
| 3050 CodeStub::GenerateStubsRequiringBuiltinsAheadOfTime(isolate()); |
| 3051 } |
| 3052 |
| 3053 |
3048 bool Heap::CreateInitialObjects() { | 3054 bool Heap::CreateInitialObjects() { |
3049 Object* obj; | 3055 Object* obj; |
3050 | 3056 |
3051 // The -0 value must be set before NumberFromDouble works. | 3057 // The -0 value must be set before NumberFromDouble works. |
3052 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); | 3058 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); |
3053 if (!maybe_obj->ToObject(&obj)) return false; | 3059 if (!maybe_obj->ToObject(&obj)) return false; |
3054 } | 3060 } |
3055 set_minus_zero_value(HeapNumber::cast(obj)); | 3061 set_minus_zero_value(HeapNumber::cast(obj)); |
3056 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); | 3062 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); |
3057 | 3063 |
(...skipping 4842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7900 if (FLAG_concurrent_recompilation) { | 7906 if (FLAG_concurrent_recompilation) { |
7901 heap_->relocation_mutex_->Lock(); | 7907 heap_->relocation_mutex_->Lock(); |
7902 #ifdef DEBUG | 7908 #ifdef DEBUG |
7903 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 7909 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
7904 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 7910 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
7905 #endif // DEBUG | 7911 #endif // DEBUG |
7906 } | 7912 } |
7907 } | 7913 } |
7908 | 7914 |
7909 } } // namespace v8::internal | 7915 } } // namespace v8::internal |
OLD | NEW |