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

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

Issue 475423003: Implement Function.prototype.toMethod. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap/heap.h ('k') | src/messages.js » ('j') | src/objects.cc » ('J')
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/once.h" 9 #include "src/base/once.h"
10 #include "src/base/utils/random-number-generator.h" 10 #include "src/base/utils/random-number-generator.h"
(...skipping 2859 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 2870
2871 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); 2871 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol());
2872 set_elements_transition_symbol(*factory->NewPrivateSymbol()); 2872 set_elements_transition_symbol(*factory->NewPrivateSymbol());
2873 set_frozen_symbol(*factory->NewPrivateSymbol()); 2873 set_frozen_symbol(*factory->NewPrivateSymbol());
2874 set_megamorphic_symbol(*factory->NewPrivateSymbol()); 2874 set_megamorphic_symbol(*factory->NewPrivateSymbol());
2875 set_nonexistent_symbol(*factory->NewPrivateSymbol()); 2875 set_nonexistent_symbol(*factory->NewPrivateSymbol());
2876 set_normal_ic_symbol(*factory->NewPrivateSymbol()); 2876 set_normal_ic_symbol(*factory->NewPrivateSymbol());
2877 set_observed_symbol(*factory->NewPrivateSymbol()); 2877 set_observed_symbol(*factory->NewPrivateSymbol());
2878 set_stack_trace_symbol(*factory->NewPrivateSymbol()); 2878 set_stack_trace_symbol(*factory->NewPrivateSymbol());
2879 set_uninitialized_symbol(*factory->NewPrivateSymbol()); 2879 set_uninitialized_symbol(*factory->NewPrivateSymbol());
2880 set_home_object_symbol(*factory->NewPrivateOwnSymbol());
2880 2881
2881 Handle<SeededNumberDictionary> slow_element_dictionary = 2882 Handle<SeededNumberDictionary> slow_element_dictionary =
2882 SeededNumberDictionary::New(isolate(), 0, TENURED); 2883 SeededNumberDictionary::New(isolate(), 0, TENURED);
2883 slow_element_dictionary->set_requires_slow_elements(); 2884 slow_element_dictionary->set_requires_slow_elements();
2884 set_empty_slow_element_dictionary(*slow_element_dictionary); 2885 set_empty_slow_element_dictionary(*slow_element_dictionary);
2885 2886
2886 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); 2887 set_materialized_objects(*factory->NewFixedArray(0, TENURED));
2887 2888
2888 // Handling of script id generation is in Factory::NewScript. 2889 // Handling of script id generation is in Factory::NewScript.
2889 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); 2890 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
(...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after
6147 static_cast<int>(object_sizes_last_time_[index])); 6148 static_cast<int>(object_sizes_last_time_[index]));
6148 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6149 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6149 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6150 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6150 6151
6151 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6152 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6152 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6153 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6153 ClearObjectStats(); 6154 ClearObjectStats();
6154 } 6155 }
6155 } 6156 }
6156 } // namespace v8::internal 6157 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/messages.js » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698