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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 1318043002: Native context: do not put public symbols and flags on the js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix and rebase Created 5 years, 3 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 | « src/harmony-tostring.js ('k') | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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-snapshot-generator.h" 5 #include "src/heap-snapshot-generator.h"
6 6
7 #include "src/allocation-tracker.h" 7 #include "src/allocation-tracker.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 #undef ROOT_NAME 2155 #undef ROOT_NAME
2156 #define STRUCT_MAP_NAME(NAME, Name, name) NAME_ENTRY(name##_map) 2156 #define STRUCT_MAP_NAME(NAME, Name, name) NAME_ENTRY(name##_map)
2157 STRUCT_LIST(STRUCT_MAP_NAME) 2157 STRUCT_LIST(STRUCT_MAP_NAME)
2158 #undef STRUCT_MAP_NAME 2158 #undef STRUCT_MAP_NAME
2159 #define STRING_NAME(name, str) NAME_ENTRY(name) 2159 #define STRING_NAME(name, str) NAME_ENTRY(name)
2160 INTERNALIZED_STRING_LIST(STRING_NAME) 2160 INTERNALIZED_STRING_LIST(STRING_NAME)
2161 #undef STRING_NAME 2161 #undef STRING_NAME
2162 #define SYMBOL_NAME(name) NAME_ENTRY(name) 2162 #define SYMBOL_NAME(name) NAME_ENTRY(name)
2163 PRIVATE_SYMBOL_LIST(SYMBOL_NAME) 2163 PRIVATE_SYMBOL_LIST(SYMBOL_NAME)
2164 #undef SYMBOL_NAME 2164 #undef SYMBOL_NAME
2165 #define SYMBOL_NAME(name, varname, description) NAME_ENTRY(name) 2165 #define SYMBOL_NAME(name, description) NAME_ENTRY(name)
2166 PUBLIC_SYMBOL_LIST(SYMBOL_NAME) 2166 PUBLIC_SYMBOL_LIST(SYMBOL_NAME)
2167 #undef SYMBOL_NAME 2167 #undef SYMBOL_NAME
2168 #undef NAME_ENTRY 2168 #undef NAME_ENTRY
2169 CHECK(!strong_gc_subroot_names_.is_empty()); 2169 CHECK(!strong_gc_subroot_names_.is_empty());
2170 } 2170 }
2171 return strong_gc_subroot_names_.GetTag(object); 2171 return strong_gc_subroot_names_.GetTag(object);
2172 } 2172 }
2173 2173
2174 2174
2175 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { 2175 void V8HeapExplorer::TagObject(Object* obj, const char* tag) {
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 for (int i = 1; i < sorted_strings.length(); ++i) { 3172 for (int i = 1; i < sorted_strings.length(); ++i) {
3173 writer_->AddCharacter(','); 3173 writer_->AddCharacter(',');
3174 SerializeString(sorted_strings[i]); 3174 SerializeString(sorted_strings[i]);
3175 if (writer_->aborted()) return; 3175 if (writer_->aborted()) return;
3176 } 3176 }
3177 } 3177 }
3178 3178
3179 3179
3180 } // namespace internal 3180 } // namespace internal
3181 } // namespace v8 3181 } // namespace v8
OLDNEW
« no previous file with comments | « src/harmony-tostring.js ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698