| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 // for cooking and uncooking (check out frames.cc). | 2581 // for cooking and uncooking (check out frames.cc). |
| 2582 // The eliminates the need for doing dictionary lookup in the | 2582 // The eliminates the need for doing dictionary lookup in the |
| 2583 // stub cache for these stubs. | 2583 // stub cache for these stubs. |
| 2584 HandleScope scope(isolate()); | 2584 HandleScope scope(isolate()); |
| 2585 | 2585 |
| 2586 // Create stubs that should be there, so we don't unexpectedly have to | 2586 // Create stubs that should be there, so we don't unexpectedly have to |
| 2587 // create them if we need them during the creation of another stub. | 2587 // create them if we need them during the creation of another stub. |
| 2588 // Stub creation mixes raw pointers and handles in an unsafe manner so | 2588 // Stub creation mixes raw pointers and handles in an unsafe manner so |
| 2589 // we cannot create stubs while we are creating stubs. | 2589 // we cannot create stubs while we are creating stubs. |
| 2590 CodeStub::GenerateStubsAheadOfTime(isolate()); | 2590 CodeStub::GenerateStubsAheadOfTime(isolate()); |
| 2591 BoomStub::GenerateAheadOfTime(isolate()); |
| 2591 | 2592 |
| 2592 // MacroAssembler::Abort calls (usually enabled with --debug-code) depend on | 2593 // MacroAssembler::Abort calls (usually enabled with --debug-code) depend on |
| 2593 // CEntryStub, so we need to call GenerateStubsAheadOfTime before JSEntryStub | 2594 // CEntryStub, so we need to call GenerateStubsAheadOfTime before JSEntryStub |
| 2594 // is created. | 2595 // is created. |
| 2595 | 2596 |
| 2596 // gcc-4.4 has problem generating correct code of following snippet: | 2597 // gcc-4.4 has problem generating correct code of following snippet: |
| 2597 // { JSEntryStub stub; | 2598 // { JSEntryStub stub; |
| 2598 // js_entry_code_ = *stub.GetCode(); | 2599 // js_entry_code_ = *stub.GetCode(); |
| 2599 // } | 2600 // } |
| 2600 // { JSConstructEntryStub stub; | 2601 // { JSConstructEntryStub stub; |
| (...skipping 3790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6391 } | 6392 } |
| 6392 | 6393 |
| 6393 | 6394 |
| 6394 // static | 6395 // static |
| 6395 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6396 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6396 return StaticVisitorBase::GetVisitorId(map); | 6397 return StaticVisitorBase::GetVisitorId(map); |
| 6397 } | 6398 } |
| 6398 | 6399 |
| 6399 } // namespace internal | 6400 } // namespace internal |
| 6400 } // namespace v8 | 6401 } // namespace v8 |
| OLD | NEW |