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

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

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 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/profiler/heap-snapshot-generator.h" 5 #include "src/profiler/heap-snapshot-generator.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/profiler/allocation-tracker.h" 10 #include "src/profiler/allocation-tracker.h"
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 SetWeakReference(js_fun, entry, 1155 SetWeakReference(js_fun, entry,
1156 "next_function_link", js_fun->next_function_link(), 1156 "next_function_link", js_fun->next_function_link(),
1157 JSFunction::kNextFunctionLinkOffset); 1157 JSFunction::kNextFunctionLinkOffset);
1158 STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset 1158 STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset
1159 == JSFunction::kNonWeakFieldsEndOffset); 1159 == JSFunction::kNonWeakFieldsEndOffset);
1160 STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset + kPointerSize 1160 STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset + kPointerSize
1161 == JSFunction::kSize); 1161 == JSFunction::kSize);
1162 } else if (obj->IsGlobalObject()) { 1162 } else if (obj->IsGlobalObject()) {
1163 GlobalObject* global_obj = GlobalObject::cast(obj); 1163 GlobalObject* global_obj = GlobalObject::cast(obj);
1164 SetInternalReference(global_obj, entry, 1164 SetInternalReference(global_obj, entry,
1165 "builtins", global_obj->builtins(),
1166 GlobalObject::kBuiltinsOffset);
1167 SetInternalReference(global_obj, entry,
1168 "native_context", global_obj->native_context(), 1165 "native_context", global_obj->native_context(),
1169 GlobalObject::kNativeContextOffset); 1166 GlobalObject::kNativeContextOffset);
1170 SetInternalReference(global_obj, entry, 1167 SetInternalReference(global_obj, entry,
1171 "global_proxy", global_obj->global_proxy(), 1168 "global_proxy", global_obj->global_proxy(),
1172 GlobalObject::kGlobalProxyOffset); 1169 GlobalObject::kGlobalProxyOffset);
1173 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize == 1170 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize ==
1174 3 * kPointerSize); 1171 2 * kPointerSize);
1175 } else if (obj->IsJSArrayBufferView()) { 1172 } else if (obj->IsJSArrayBufferView()) {
1176 JSArrayBufferView* view = JSArrayBufferView::cast(obj); 1173 JSArrayBufferView* view = JSArrayBufferView::cast(obj);
1177 SetInternalReference(view, entry, "buffer", view->buffer(), 1174 SetInternalReference(view, entry, "buffer", view->buffer(),
1178 JSArrayBufferView::kBufferOffset); 1175 JSArrayBufferView::kBufferOffset);
1179 } 1176 }
1180 TagObject(js_obj->properties(), "(object properties)"); 1177 TagObject(js_obj->properties(), "(object properties)");
1181 SetInternalReference(obj, entry, 1178 SetInternalReference(obj, entry,
1182 "properties", js_obj->properties(), 1179 "properties", js_obj->properties(),
1183 JSObject::kPropertiesOffset); 1180 JSObject::kPropertiesOffset);
1184 TagObject(js_obj->elements(), "(object elements)"); 1181 TagObject(js_obj->elements(), "(object elements)");
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
3169 for (int i = 1; i < sorted_strings.length(); ++i) { 3166 for (int i = 1; i < sorted_strings.length(); ++i) {
3170 writer_->AddCharacter(','); 3167 writer_->AddCharacter(',');
3171 SerializeString(sorted_strings[i]); 3168 SerializeString(sorted_strings[i]);
3172 if (writer_->aborted()) return; 3169 if (writer_->aborted()) return;
3173 } 3170 }
3174 } 3171 }
3175 3172
3176 3173
3177 } // namespace internal 3174 } // namespace internal
3178 } // namespace v8 3175 } // namespace v8
OLDNEW
« src/objects.h ('K') | « src/objects-printer.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698