OLD | NEW |
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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap-snapshot-generator-inl.h" | 7 #include "src/heap-snapshot-generator-inl.h" |
8 | 8 |
9 #include "src/allocation-tracker.h" | 9 #include "src/allocation-tracker.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 == JSFunction::kSize); | 1160 == JSFunction::kSize); |
1161 } else if (obj->IsGlobalObject()) { | 1161 } else if (obj->IsGlobalObject()) { |
1162 GlobalObject* global_obj = GlobalObject::cast(obj); | 1162 GlobalObject* global_obj = GlobalObject::cast(obj); |
1163 SetInternalReference(global_obj, entry, | 1163 SetInternalReference(global_obj, entry, |
1164 "builtins", global_obj->builtins(), | 1164 "builtins", global_obj->builtins(), |
1165 GlobalObject::kBuiltinsOffset); | 1165 GlobalObject::kBuiltinsOffset); |
1166 SetInternalReference(global_obj, entry, | 1166 SetInternalReference(global_obj, entry, |
1167 "native_context", global_obj->native_context(), | 1167 "native_context", global_obj->native_context(), |
1168 GlobalObject::kNativeContextOffset); | 1168 GlobalObject::kNativeContextOffset); |
1169 SetInternalReference(global_obj, entry, | 1169 SetInternalReference(global_obj, entry, |
1170 "global_context", global_obj->global_context(), | |
1171 GlobalObject::kGlobalContextOffset); | |
1172 SetInternalReference(global_obj, entry, | |
1173 "global_proxy", global_obj->global_proxy(), | 1170 "global_proxy", global_obj->global_proxy(), |
1174 GlobalObject::kGlobalProxyOffset); | 1171 GlobalObject::kGlobalProxyOffset); |
1175 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize == | 1172 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize == |
1176 4 * kPointerSize); | 1173 3 * kPointerSize); |
1177 } else if (obj->IsJSArrayBufferView()) { | 1174 } else if (obj->IsJSArrayBufferView()) { |
1178 JSArrayBufferView* view = JSArrayBufferView::cast(obj); | 1175 JSArrayBufferView* view = JSArrayBufferView::cast(obj); |
1179 SetInternalReference(view, entry, "buffer", view->buffer(), | 1176 SetInternalReference(view, entry, "buffer", view->buffer(), |
1180 JSArrayBufferView::kBufferOffset); | 1177 JSArrayBufferView::kBufferOffset); |
1181 SetWeakReference(view, entry, "weak_next", view->weak_next(), | 1178 SetWeakReference(view, entry, "weak_next", view->weak_next(), |
1182 JSArrayBufferView::kWeakNextOffset); | 1179 JSArrayBufferView::kWeakNextOffset); |
1183 } | 1180 } |
1184 TagObject(js_obj->properties(), "(object properties)"); | 1181 TagObject(js_obj->properties(), "(object properties)"); |
1185 SetInternalReference(obj, entry, | 1182 SetInternalReference(obj, entry, |
1186 "properties", js_obj->properties(), | 1183 "properties", js_obj->properties(), |
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3137 writer_->AddString("\"<dummy>\""); | 3134 writer_->AddString("\"<dummy>\""); |
3138 for (int i = 1; i < sorted_strings.length(); ++i) { | 3135 for (int i = 1; i < sorted_strings.length(); ++i) { |
3139 writer_->AddCharacter(','); | 3136 writer_->AddCharacter(','); |
3140 SerializeString(sorted_strings[i]); | 3137 SerializeString(sorted_strings[i]); |
3141 if (writer_->aborted()) return; | 3138 if (writer_->aborted()) return; |
3142 } | 3139 } |
3143 } | 3140 } |
3144 | 3141 |
3145 | 3142 |
3146 } } // namespace v8::internal | 3143 } } // namespace v8::internal |
OLD | NEW |