Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: src/heap/heap.cc

Issue 2869683004: [arm] Share constant pool entries in snapshot. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/ast/context-slot-cache.h" 10 #include "src/ast/context-slot-cache.h"
(...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 set_js_construct_entry_code(*stub.GetCode()); 2619 set_js_construct_entry_code(*stub.GetCode());
2620 } 2620 }
2621 2621
2622 2622
2623 void Heap::CreateFixedStubs() { 2623 void Heap::CreateFixedStubs() {
2624 // Here we create roots for fixed stubs. They are needed at GC 2624 // Here we create roots for fixed stubs. They are needed at GC
2625 // for cooking and uncooking (check out frames.cc). 2625 // for cooking and uncooking (check out frames.cc).
2626 // The eliminates the need for doing dictionary lookup in the 2626 // The eliminates the need for doing dictionary lookup in the
2627 // stub cache for these stubs. 2627 // stub cache for these stubs.
2628 HandleScope scope(isolate()); 2628 HandleScope scope(isolate());
2629 CanonicalHandleScope canonical(isolate());
2629 2630
2630 // Create stubs that should be there, so we don't unexpectedly have to 2631 // Create stubs that should be there, so we don't unexpectedly have to
2631 // create them if we need them during the creation of another stub. 2632 // create them if we need them during the creation of another stub.
2632 // Stub creation mixes raw pointers and handles in an unsafe manner so 2633 // Stub creation mixes raw pointers and handles in an unsafe manner so
2633 // we cannot create stubs while we are creating stubs. 2634 // we cannot create stubs while we are creating stubs.
2634 CodeStub::GenerateStubsAheadOfTime(isolate()); 2635 CodeStub::GenerateStubsAheadOfTime(isolate());
2635 2636
2636 // MacroAssembler::Abort calls (usually enabled with --debug-code) depend on 2637 // MacroAssembler::Abort calls (usually enabled with --debug-code) depend on
2637 // CEntryStub, so we need to call GenerateStubsAheadOfTime before JSEntryStub 2638 // CEntryStub, so we need to call GenerateStubsAheadOfTime before JSEntryStub
2638 // is created. 2639 // is created.
(...skipping 3752 matching lines...) Expand 10 before | Expand all | Expand 10 after
6391 case LO_SPACE: 6392 case LO_SPACE:
6392 return "LO_SPACE"; 6393 return "LO_SPACE";
6393 default: 6394 default:
6394 UNREACHABLE(); 6395 UNREACHABLE();
6395 } 6396 }
6396 return NULL; 6397 return NULL;
6397 } 6398 }
6398 6399
6399 } // namespace internal 6400 } // namespace internal
6400 } // namespace v8 6401 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698