| 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 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3111   Heap::CreateJSConstructEntryStub(); |  3111   Heap::CreateJSConstructEntryStub(); | 
|  3112  |  3112  | 
|  3113   // Create stubs that should be there, so we don't unexpectedly have to |  3113   // Create stubs that should be there, so we don't unexpectedly have to | 
|  3114   // create them if we need them during the creation of another stub. |  3114   // create them if we need them during the creation of another stub. | 
|  3115   // Stub creation mixes raw pointers and handles in an unsafe manner so |  3115   // Stub creation mixes raw pointers and handles in an unsafe manner so | 
|  3116   // we cannot create stubs while we are creating stubs. |  3116   // we cannot create stubs while we are creating stubs. | 
|  3117   CodeStub::GenerateStubsAheadOfTime(isolate()); |  3117   CodeStub::GenerateStubsAheadOfTime(isolate()); | 
|  3118 } |  3118 } | 
|  3119  |  3119  | 
|  3120  |  3120  | 
 |  3121 void Heap::CreateStubsRequiringBuiltins() { | 
 |  3122   HandleScope scope(isolate()); | 
 |  3123   CodeStub::GenerateStubsRequiringBuiltinsAheadOfTime(isolate()); | 
 |  3124 } | 
 |  3125  | 
 |  3126  | 
|  3121 bool Heap::CreateInitialObjects() { |  3127 bool Heap::CreateInitialObjects() { | 
|  3122   Object* obj; |  3128   Object* obj; | 
|  3123  |  3129  | 
|  3124   // The -0 value must be set before NumberFromDouble works. |  3130   // The -0 value must be set before NumberFromDouble works. | 
|  3125   { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); |  3131   { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); | 
|  3126     if (!maybe_obj->ToObject(&obj)) return false; |  3132     if (!maybe_obj->ToObject(&obj)) return false; | 
|  3127   } |  3133   } | 
|  3128   set_minus_zero_value(HeapNumber::cast(obj)); |  3134   set_minus_zero_value(HeapNumber::cast(obj)); | 
|  3129   ASSERT(std::signbit(minus_zero_value()->Number()) != 0); |  3135   ASSERT(std::signbit(minus_zero_value()->Number()) != 0); | 
|  3130  |  3136  | 
| (...skipping 4821 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  7952   if (FLAG_concurrent_recompilation) { |  7958   if (FLAG_concurrent_recompilation) { | 
|  7953     heap_->relocation_mutex_->Lock(); |  7959     heap_->relocation_mutex_->Lock(); | 
|  7954 #ifdef DEBUG |  7960 #ifdef DEBUG | 
|  7955     heap_->relocation_mutex_locked_by_optimizer_thread_ = |  7961     heap_->relocation_mutex_locked_by_optimizer_thread_ = | 
|  7956         heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |  7962         heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 
|  7957 #endif  // DEBUG |  7963 #endif  // DEBUG | 
|  7958   } |  7964   } | 
|  7959 } |  7965 } | 
|  7960  |  7966  | 
|  7961 } }  // namespace v8::internal |  7967 } }  // namespace v8::internal | 
| OLD | NEW |