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

Side by Side Diff: src/factory.h

Issue 1292963006: [heap] Move {hidden_string} into the root list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | src/heap/heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 #undef SYMBOL_ACCESSOR 618 #undef SYMBOL_ACCESSOR
619 619
620 inline void set_string_table(Handle<StringTable> table) { 620 inline void set_string_table(Handle<StringTable> table) {
621 isolate()->heap()->set_string_table(*table); 621 isolate()->heap()->set_string_table(*table);
622 } 622 }
623 623
624 inline void set_weak_stack_trace_list(Handle<WeakFixedArray> list) { 624 inline void set_weak_stack_trace_list(Handle<WeakFixedArray> list) {
625 isolate()->heap()->set_weak_stack_trace_list(*list); 625 isolate()->heap()->set_weak_stack_trace_list(*list);
626 } 626 }
627 627
628 Handle<String> hidden_string() {
629 return Handle<String>(&isolate()->heap()->hidden_string_);
630 }
631
632 // Allocates a new SharedFunctionInfo object. 628 // Allocates a new SharedFunctionInfo object.
633 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 629 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
634 Handle<String> name, int number_of_literals, FunctionKind kind, 630 Handle<String> name, int number_of_literals, FunctionKind kind,
635 Handle<Code> code, Handle<ScopeInfo> scope_info, 631 Handle<Code> code, Handle<ScopeInfo> scope_info,
636 Handle<TypeFeedbackVector> feedback_vector); 632 Handle<TypeFeedbackVector> feedback_vector);
637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 633 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
638 MaybeHandle<Code> code); 634 MaybeHandle<Code> code);
639 635
640 // Allocate a new type feedback vector 636 // Allocate a new type feedback vector
641 template <typename Spec> 637 template <typename Spec>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // Reinitialize a JSProxy into an (empty) JS object of respective type and 723 // Reinitialize a JSProxy into an (empty) JS object of respective type and
728 // size, but keeping the original prototype. The receiver must have at least 724 // size, but keeping the original prototype. The receiver must have at least
729 // the size of the new object. The object is reinitialized and behaves as an 725 // the size of the new object. The object is reinitialized and behaves as an
730 // object that has been freshly allocated. 726 // object that has been freshly allocated.
731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 727 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
732 }; 728 };
733 729
734 } } // namespace v8::internal 730 } } // namespace v8::internal
735 731
736 #endif // V8_FACTORY_H_ 732 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698