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

Side by Side Diff: src/property.cc

Issue 888623002: Property reconfiguring implemented. Tests added. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Prototype transitions printing removed Created 5 years, 10 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/objects-printer.cc ('k') | src/property-details.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/property.h" 5 #include "src/property.h"
6 6
7 #include "src/handles-inl.h" 7 #include "src/handles-inl.h"
8 #include "src/ostreams.h" 8 #include "src/ostreams.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Outputs PropertyDetails as a descriptor array details. 63 // Outputs PropertyDetails as a descriptor array details.
64 std::ostream& operator<<(std::ostream& os, 64 std::ostream& operator<<(std::ostream& os,
65 const FastPropertyDetails& details_fast) { 65 const FastPropertyDetails& details_fast) {
66 const PropertyDetails& details = details_fast.details; 66 const PropertyDetails& details = details_fast.details;
67 os << "("; 67 os << "(";
68 if (details.location() == kDescriptor) { 68 if (details.location() == kDescriptor) {
69 os << "immutable "; 69 os << "immutable ";
70 } 70 }
71 os << (details.kind() == kData ? "data" : "accessor"); 71 os << (details.kind() == kData ? "data" : "accessor");
72 os << ": " << details.representation().Mnemonic();
72 if (details.location() == kField) { 73 if (details.location() == kField) {
73 os << ": " << details.representation().Mnemonic() 74 os << ", field_index: " << details.field_index();
74 << ", field_index: " << details.field_index();
75 } 75 }
76 return os << ", p: " << details.pointer() 76 return os << ", p: " << details.pointer()
77 << ", attrs: " << details.attributes() << ")"; 77 << ", attrs: " << details.attributes() << ")";
78 } 78 }
79 79
80 80
81 #ifdef OBJECT_PRINT 81 #ifdef OBJECT_PRINT
82 void PropertyDetails::Print(bool dictionary_mode) { 82 void PropertyDetails::Print(bool dictionary_mode) {
83 OFStream os(stdout); 83 OFStream os(stdout);
84 if (dictionary_mode) { 84 if (dictionary_mode) {
(...skipping 12 matching lines...) Expand all
97 if (value->IsAccessorPair()) { 97 if (value->IsAccessorPair()) {
98 AccessorPair* pair = AccessorPair::cast(value); 98 AccessorPair* pair = AccessorPair::cast(value);
99 os << "(get: " << Brief(pair->getter()) 99 os << "(get: " << Brief(pair->getter())
100 << ", set: " << Brief(pair->setter()) << ") "; 100 << ", set: " << Brief(pair->setter()) << ") ";
101 } 101 }
102 os << FastPropertyDetails(d.GetDetails()); 102 os << FastPropertyDetails(d.GetDetails());
103 return os; 103 return os;
104 } 104 }
105 105
106 } } // namespace v8::internal 106 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698