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

Side by Side Diff: src/property.cc

Issue 1696333002: Don't include field-type.h into objects-inl.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/property.h ('k') | src/regexp/regexp-parser.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 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/field-type.h"
7 #include "src/handles-inl.h" 8 #include "src/handles-inl.h"
8 #include "src/ostreams.h" 9 #include "src/ostreams.h"
9 10
10 namespace v8 { 11 namespace v8 {
11 namespace internal { 12 namespace internal {
12 13
13 std::ostream& operator<<(std::ostream& os, 14 std::ostream& operator<<(std::ostream& os,
14 const PropertyAttributes& attributes) { 15 const PropertyAttributes& attributes) {
15 os << "["; 16 os << "[";
16 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable 17 os << (((attributes & READ_ONLY) == 0) ? "W" : "_"); // writable
17 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable 18 os << (((attributes & DONT_ENUM) == 0) ? "E" : "_"); // enumerable
18 os << (((attributes & DONT_DELETE) == 0) ? "C" : "_"); // configurable 19 os << (((attributes & DONT_DELETE) == 0) ? "C" : "_"); // configurable
19 os << "]"; 20 os << "]";
20 return os; 21 return os;
21 } 22 }
22 23
24 DataDescriptor::DataDescriptor(Handle<Name> key, int field_index,
25 PropertyAttributes attributes,
26 Representation representation)
27 : Descriptor(key, FieldType::Any(key->GetIsolate()), attributes, DATA,
28 representation, field_index) {}
23 29
24 struct FastPropertyDetails { 30 struct FastPropertyDetails {
25 explicit FastPropertyDetails(const PropertyDetails& v) : details(v) {} 31 explicit FastPropertyDetails(const PropertyDetails& v) : details(v) {}
26 const PropertyDetails details; 32 const PropertyDetails details;
27 }; 33 };
28 34
29 35
30 // Outputs PropertyDetails as a dictionary details. 36 // Outputs PropertyDetails as a dictionary details.
31 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details) { 37 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details) {
32 os << "("; 38 os << "(";
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 AccessorPair* pair = AccessorPair::cast(value); 83 AccessorPair* pair = AccessorPair::cast(value);
78 os << "(get: " << Brief(pair->getter()) 84 os << "(get: " << Brief(pair->getter())
79 << ", set: " << Brief(pair->setter()) << ") "; 85 << ", set: " << Brief(pair->setter()) << ") ";
80 } 86 }
81 os << FastPropertyDetails(d.GetDetails()); 87 os << FastPropertyDetails(d.GetDetails());
82 return os; 88 return os;
83 } 89 }
84 90
85 } // namespace internal 91 } // namespace internal
86 } // namespace v8 92 } // namespace v8
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/regexp/regexp-parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698