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 |
3118 bool Heap::CreateInitialObjects() { | 3124 bool Heap::CreateInitialObjects() { |
3119 Object* obj; | 3125 Object* obj; |
3120 | 3126 |
3121 // The -0 value must be set before NumberFromDouble works. | 3127 // The -0 value must be set before NumberFromDouble works. |
3122 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); | 3128 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); |
3123 if (!maybe_obj->ToObject(&obj)) return false; | 3129 if (!maybe_obj->ToObject(&obj)) return false; |
3124 } | 3130 } |
3125 set_minus_zero_value(HeapNumber::cast(obj)); | 3131 set_minus_zero_value(HeapNumber::cast(obj)); |
3126 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); | 3132 ASSERT(std::signbit(minus_zero_value()->Number()) != 0); |
3127 | 3133 |
(...skipping 4783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7911 if (FLAG_concurrent_recompilation) { | 7917 if (FLAG_concurrent_recompilation) { |
7912 heap_->relocation_mutex_->Lock(); | 7918 heap_->relocation_mutex_->Lock(); |
7913 #ifdef DEBUG | 7919 #ifdef DEBUG |
7914 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 7920 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
7915 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 7921 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
7916 #endif // DEBUG | 7922 #endif // DEBUG |
7917 } | 7923 } |
7918 } | 7924 } |
7919 | 7925 |
7920 } } // namespace v8::internal | 7926 } } // namespace v8::internal |
OLD | NEW |