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

Side by Side Diff: src/property.cc

Issue 391693002: In-object double fields unboxing (for 64-bit only). (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
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 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 case INTERCEPTOR: 49 case INTERCEPTOR:
50 return os << " -type = lookup interceptor\n"; 50 return os << " -type = lookup interceptor\n";
51 case NONEXISTENT: 51 case NONEXISTENT:
52 UNREACHABLE(); 52 UNREACHABLE();
53 break; 53 break;
54 } 54 }
55 return os; 55 return os;
56 } 56 }
57 57
58 58
59 OStream& operator<<(OStream& os, const PropertyDetails& details) {
60 switch (details.type()) {
61 case NORMAL:
62 os << "(normal, dictionary_index: " << details.dictionary_index() << ")";
63 break;
64 case CONSTANT:
65 os << "(constant)\n";
66 break;
67 case FIELD:
68 os << "(field, field_index: " << details.field_index() << ", "
69 << details.representation().Mnemonic() << ")";
70 break;
71 case CALLBACKS:
72 os << "(callbacks)";
73 break;
74 case HANDLER:
75 case INTERCEPTOR:
76 case NONEXISTENT:
77 UNREACHABLE();
78 break;
79 }
80 return os;
81 }
82
83
59 OStream& operator<<(OStream& os, const Descriptor& d) { 84 OStream& operator<<(OStream& os, const Descriptor& d) {
60 return os << "Descriptor " << Brief(*d.GetKey()) << " @ " 85 return os << "Descriptor " << Brief(*d.GetKey()) << " @ "
61 << Brief(*d.GetValue()); 86 << Brief(*d.GetValue()) << " " << d.GetDetails();
62 } 87 }
63 88
64 } } // namespace v8::internal 89 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698