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

Side by Side Diff: src/objects-visiting.cc

Issue 7553012: Prototype of mark-and-compact support for Harmony weak maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed commented stress test. Created 9 years, 4 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/objects-visiting.h ('k') | src/runtime.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 case MAP_TYPE: 82 case MAP_TYPE:
83 return kVisitMap; 83 return kVisitMap;
84 84
85 case CODE_TYPE: 85 case CODE_TYPE:
86 return kVisitCode; 86 return kVisitCode;
87 87
88 case JS_GLOBAL_PROPERTY_CELL_TYPE: 88 case JS_GLOBAL_PROPERTY_CELL_TYPE:
89 return kVisitPropertyCell; 89 return kVisitPropertyCell;
90 90
91 case JS_WEAK_MAP_TYPE:
92 return kVisitJSWeakMap;
93
91 case JS_REGEXP_TYPE: 94 case JS_REGEXP_TYPE:
92 return kVisitJSRegExp; 95 return kVisitJSRegExp;
93 96
94 case SHARED_FUNCTION_INFO_TYPE: 97 case SHARED_FUNCTION_INFO_TYPE:
95 return kVisitSharedFunctionInfo; 98 return kVisitSharedFunctionInfo;
96 99
97 case JS_PROXY_TYPE: 100 case JS_PROXY_TYPE:
98 return GetVisitorIdForSize(kVisitStruct, 101 return GetVisitorIdForSize(kVisitStruct,
99 kVisitStructGeneric, 102 kVisitStructGeneric,
100 JSProxy::kSize); 103 JSProxy::kSize);
101 104
102 case FOREIGN_TYPE: 105 case FOREIGN_TYPE:
103 return GetVisitorIdForSize(kVisitDataObject, 106 return GetVisitorIdForSize(kVisitDataObject,
104 kVisitDataObjectGeneric, 107 kVisitDataObjectGeneric,
105 Foreign::kSize); 108 Foreign::kSize);
106 109
107 case FILLER_TYPE: 110 case FILLER_TYPE:
108 return kVisitDataObjectGeneric; 111 return kVisitDataObjectGeneric;
109 112
110 case JS_OBJECT_TYPE: 113 case JS_OBJECT_TYPE:
111 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 114 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
112 case JS_VALUE_TYPE: 115 case JS_VALUE_TYPE:
113 case JS_ARRAY_TYPE: 116 case JS_ARRAY_TYPE:
114 case JS_GLOBAL_PROXY_TYPE: 117 case JS_GLOBAL_PROXY_TYPE:
115 case JS_GLOBAL_OBJECT_TYPE: 118 case JS_GLOBAL_OBJECT_TYPE:
116 case JS_BUILTINS_OBJECT_TYPE: 119 case JS_BUILTINS_OBJECT_TYPE:
117 case JS_MESSAGE_OBJECT_TYPE: 120 case JS_MESSAGE_OBJECT_TYPE:
118 case JS_WEAK_MAP_TYPE:
119 return GetVisitorIdForSize(kVisitJSObject, 121 return GetVisitorIdForSize(kVisitJSObject,
120 kVisitJSObjectGeneric, 122 kVisitJSObjectGeneric,
121 instance_size); 123 instance_size);
122 124
123 case JS_FUNCTION_TYPE: 125 case JS_FUNCTION_TYPE:
124 return kVisitJSFunction; 126 return kVisitJSFunction;
125 127
126 case HEAP_NUMBER_TYPE: 128 case HEAP_NUMBER_TYPE:
127 case EXTERNAL_PIXEL_ARRAY_TYPE: 129 case EXTERNAL_PIXEL_ARRAY_TYPE:
128 case EXTERNAL_BYTE_ARRAY_TYPE: 130 case EXTERNAL_BYTE_ARRAY_TYPE:
(...skipping 16 matching lines...) Expand all
145 kVisitStructGeneric, 147 kVisitStructGeneric,
146 instance_size); 148 instance_size);
147 149
148 default: 150 default:
149 UNREACHABLE(); 151 UNREACHABLE();
150 return kVisitorIdCount; 152 return kVisitorIdCount;
151 } 153 }
152 } 154 }
153 155
154 } } // namespace v8::internal 156 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698