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

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

Issue 355793003: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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.cc ('k') | src/hydrogen.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 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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 } 1634 }
1635 1635
1636 1636
1637 void V8HeapExplorer::ExtractPropertyReferences(JSObject* js_obj, int entry) { 1637 void V8HeapExplorer::ExtractPropertyReferences(JSObject* js_obj, int entry) {
1638 if (js_obj->HasFastProperties()) { 1638 if (js_obj->HasFastProperties()) {
1639 DescriptorArray* descs = js_obj->map()->instance_descriptors(); 1639 DescriptorArray* descs = js_obj->map()->instance_descriptors();
1640 int real_size = js_obj->map()->NumberOfOwnDescriptors(); 1640 int real_size = js_obj->map()->NumberOfOwnDescriptors();
1641 for (int i = 0; i < real_size; i++) { 1641 for (int i = 0; i < real_size; i++) {
1642 switch (descs->GetType(i)) { 1642 switch (descs->GetType(i)) {
1643 case FIELD: { 1643 case FIELD: {
1644 Representation r = descs->GetDetails(i).representation();
1645 if (r.IsSmi() || r.IsDouble()) break;
1644 int index = descs->GetFieldIndex(i); 1646 int index = descs->GetFieldIndex(i);
1645 1647
1646 Name* k = descs->GetKey(i); 1648 Name* k = descs->GetKey(i);
1647 if (index < js_obj->map()->inobject_properties()) { 1649 if (index < js_obj->map()->inobject_properties()) {
1648 Object* value = js_obj->InObjectPropertyAt(index); 1650 Object* value = js_obj->InObjectPropertyAt(index);
1649 if (k != heap_->hidden_string()) { 1651 if (k != heap_->hidden_string()) {
1650 SetPropertyReference( 1652 SetPropertyReference(
1651 js_obj, entry, 1653 js_obj, entry,
1652 k, value, 1654 k, value,
1653 NULL, 1655 NULL,
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 writer_->AddString("\"<dummy>\""); 3173 writer_->AddString("\"<dummy>\"");
3172 for (int i = 1; i < sorted_strings.length(); ++i) { 3174 for (int i = 1; i < sorted_strings.length(); ++i) {
3173 writer_->AddCharacter(','); 3175 writer_->AddCharacter(',');
3174 SerializeString(sorted_strings[i]); 3176 SerializeString(sorted_strings[i]);
3175 if (writer_->aborted()) return; 3177 if (writer_->aborted()) return;
3176 } 3178 }
3177 } 3179 }
3178 3180
3179 3181
3180 } } // namespace v8::internal 3182 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698