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

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

Issue 618123005: Revert "Use symbols instead of hidden properties for i18n markers." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/heap/heap.h ('k') | src/hydrogen-instructions.cc » ('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 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/v8.h" 5 #include "src/v8.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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 set_symbol_registry(undefined_value()); 2861 set_symbol_registry(undefined_value());
2862 2862
2863 // Allocate object to hold object observation state. 2863 // Allocate object to hold object observation state.
2864 set_observation_state(*factory->NewJSObjectFromMap( 2864 set_observation_state(*factory->NewJSObjectFromMap(
2865 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 2865 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
2866 2866
2867 // Microtask queue uses the empty fixed array as a sentinel for "empty". 2867 // Microtask queue uses the empty fixed array as a sentinel for "empty".
2868 // Number of queued microtasks stored in Isolate::pending_microtask_count(). 2868 // Number of queued microtasks stored in Isolate::pending_microtask_count().
2869 set_microtask_queue(empty_fixed_array()); 2869 set_microtask_queue(empty_fixed_array());
2870 2870
2871 #define SYMBOL_INIT(name) \ 2871 set_detailed_stack_trace_symbol(*factory->NewPrivateOwnSymbol());
2872 roots_[k##name##RootIndex] = *factory->NewPrivateOwnSymbol(); 2872 set_elements_transition_symbol(*factory->NewPrivateOwnSymbol());
2873 PRIVATE_SYMBOL_LIST(SYMBOL_INIT) 2873 set_frozen_symbol(*factory->NewPrivateOwnSymbol());
2874 #undef SYMBOL_INIT 2874 set_megamorphic_symbol(*factory->NewPrivateOwnSymbol());
2875 set_premonomorphic_symbol(*factory->NewPrivateOwnSymbol());
2876 set_generic_symbol(*factory->NewPrivateOwnSymbol());
2877 set_nonexistent_symbol(*factory->NewPrivateOwnSymbol());
2878 set_normal_ic_symbol(*factory->NewPrivateOwnSymbol());
2879 set_observed_symbol(*factory->NewPrivateOwnSymbol());
2880 set_stack_trace_symbol(*factory->NewPrivateOwnSymbol());
2881 set_uninitialized_symbol(*factory->NewPrivateOwnSymbol());
2882 set_home_object_symbol(*factory->NewPrivateOwnSymbol());
2883 set_promise_debug_marker_symbol(*factory->NewPrivateOwnSymbol());
2884 set_promise_has_handler_symbol(*factory->NewPrivateOwnSymbol());
2875 2885
2876 Handle<SeededNumberDictionary> slow_element_dictionary = 2886 Handle<SeededNumberDictionary> slow_element_dictionary =
2877 SeededNumberDictionary::New(isolate(), 0, TENURED); 2887 SeededNumberDictionary::New(isolate(), 0, TENURED);
2878 slow_element_dictionary->set_requires_slow_elements(); 2888 slow_element_dictionary->set_requires_slow_elements();
2879 set_empty_slow_element_dictionary(*slow_element_dictionary); 2889 set_empty_slow_element_dictionary(*slow_element_dictionary);
2880 2890
2881 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); 2891 set_materialized_objects(*factory->NewFixedArray(0, TENURED));
2882 2892
2883 // Handling of script id generation is in Factory::NewScript. 2893 // Handling of script id generation is in Factory::NewScript.
2884 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); 2894 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
(...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after
6142 static_cast<int>(object_sizes_last_time_[index])); 6152 static_cast<int>(object_sizes_last_time_[index]));
6143 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6153 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6144 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6154 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6145 6155
6146 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6156 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6147 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6157 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6148 ClearObjectStats(); 6158 ClearObjectStats();
6149 } 6159 }
6150 } 6160 }
6151 } // namespace v8::internal 6161 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698