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/property.cc

Issue 178223011: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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/property.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 17 matching lines...) Expand all
28 #include "v8.h" 28 #include "v8.h"
29 29
30 namespace v8 { 30 namespace v8 {
31 namespace internal { 31 namespace internal {
32 32
33 33
34 void LookupResult::Iterate(ObjectVisitor* visitor) { 34 void LookupResult::Iterate(ObjectVisitor* visitor) {
35 LookupResult* current = this; // Could be NULL. 35 LookupResult* current = this; // Could be NULL.
36 while (current != NULL) { 36 while (current != NULL) {
37 visitor->VisitPointer(BitCast<Object**>(&current->holder_)); 37 visitor->VisitPointer(BitCast<Object**>(&current->holder_));
38 visitor->VisitPointer(BitCast<Object**>(&current->transition_));
39 current = current->next_; 38 current = current->next_;
40 } 39 }
41 } 40 }
42 41
43 42
44 #ifdef OBJECT_PRINT 43 #ifdef OBJECT_PRINT
45 void LookupResult::Print(FILE* out) { 44 void LookupResult::Print(FILE* out) {
46 if (!IsFound()) { 45 if (!IsFound()) {
47 PrintF(out, "Not Found\n"); 46 PrintF(out, "Not Found\n");
48 return; 47 return;
(...skipping 27 matching lines...) Expand all
76 PrintF(out, " -type = lookup proxy\n"); 75 PrintF(out, " -type = lookup proxy\n");
77 break; 76 break;
78 case INTERCEPTOR: 77 case INTERCEPTOR:
79 PrintF(out, " -type = lookup interceptor\n"); 78 PrintF(out, " -type = lookup interceptor\n");
80 break; 79 break;
81 case TRANSITION: 80 case TRANSITION:
82 switch (GetTransitionDetails().type()) { 81 switch (GetTransitionDetails().type()) {
83 case FIELD: 82 case FIELD:
84 PrintF(out, " -type = map transition\n"); 83 PrintF(out, " -type = map transition\n");
85 PrintF(out, " -map:\n"); 84 PrintF(out, " -map:\n");
86 GetTransitionTarget()->Print(out); 85 GetTransitionMap()->Print(out);
87 PrintF(out, "\n"); 86 PrintF(out, "\n");
88 return; 87 return;
89 case CONSTANT: 88 case CONSTANT:
90 PrintF(out, " -type = constant property transition\n"); 89 PrintF(out, " -type = constant property transition\n");
91 PrintF(out, " -map:\n"); 90 PrintF(out, " -map:\n");
92 GetTransitionTarget()->Print(out); 91 GetTransitionMap()->Print(out);
93 PrintF(out, "\n"); 92 PrintF(out, "\n");
94 return; 93 return;
95 case CALLBACKS: 94 case CALLBACKS:
96 PrintF(out, " -type = callbacks transition\n"); 95 PrintF(out, " -type = callbacks transition\n");
97 PrintF(out, " -callback object:\n"); 96 PrintF(out, " -callback object:\n");
98 GetCallbackObject()->Print(out); 97 GetCallbackObject()->Print(out);
99 return; 98 return;
100 default: 99 default:
101 UNREACHABLE(); 100 UNREACHABLE();
102 return; 101 return;
(...skipping 10 matching lines...) Expand all
113 GetKey()->ShortPrint(out); 112 GetKey()->ShortPrint(out);
114 PrintF(out, " @ "); 113 PrintF(out, " @ ");
115 GetValue()->ShortPrint(out); 114 GetValue()->ShortPrint(out);
116 } 115 }
117 116
118 117
119 #endif 118 #endif
120 119
121 120
122 } } // namespace v8::internal 121 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698