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 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3108 Heap::CreateJSConstructEntryStub(); | 3108 Heap::CreateJSConstructEntryStub(); |
3109 | 3109 |
3110 // Create stubs that should be there, so we don't unexpectedly have to | 3110 // Create stubs that should be there, so we don't unexpectedly have to |
3111 // create them if we need them during the creation of another stub. | 3111 // create them if we need them during the creation of another stub. |
3112 // Stub creation mixes raw pointers and handles in an unsafe manner so | 3112 // Stub creation mixes raw pointers and handles in an unsafe manner so |
3113 // we cannot create stubs while we are creating stubs. | 3113 // we cannot create stubs while we are creating stubs. |
3114 CodeStub::GenerateStubsAheadOfTime(isolate()); | 3114 CodeStub::GenerateStubsAheadOfTime(isolate()); |
3115 } | 3115 } |
3116 | 3116 |
3117 | 3117 |
3118 void Heap::CreateStubsRequiringBuiltins() { | |
3119 HandleScope scope(isolate()); | |
3120 CodeStub::GenerateStubsRequiringBuiltinsAheadOfTime(isolate()); | |
3121 } | |
3122 | |
3123 | |
3124 bool Heap::CreateInitialObjects() { | 3118 bool Heap::CreateInitialObjects() { |
3125 Object* obj; | 3119 Object* obj; |
3126 | 3120 |
3127 // The -0 value must be set before NumberFromDouble works. | 3121 // The -0 value must be set before NumberFromDouble works. |
3128 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); | 3122 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); |
3129 if (!maybe_obj->ToObject(&obj)) return false; | 3123 if (!maybe_obj->ToObject(&obj)) return false; |
3130 } | 3124 } |
3131 set_minus_zero_value(HeapNumber::cast(obj)); | 3125 set_minus_zero_value(HeapNumber::cast(obj)); |
3132 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); | 3126 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); |
3133 | 3127 |
(...skipping 4795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7929 if (FLAG_concurrent_recompilation) { | 7923 if (FLAG_concurrent_recompilation) { |
7930 heap_->relocation_mutex_->Lock(); | 7924 heap_->relocation_mutex_->Lock(); |
7931 #ifdef DEBUG | 7925 #ifdef DEBUG |
7932 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 7926 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
7933 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 7927 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
7934 #endif // DEBUG | 7928 #endif // DEBUG |
7935 } | 7929 } |
7936 } | 7930 } |
7937 | 7931 |
7938 } } // namespace v8::internal | 7932 } } // namespace v8::internal |
OLD | NEW |