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

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

Issue 240323003: ES6: Add support for Map/Set forEach (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Explicit instantiate the functions instead Created 6 years, 8 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-printer.cc ('k') | src/runtime.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 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 156 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
157 case JS_GENERATOR_OBJECT_TYPE: 157 case JS_GENERATOR_OBJECT_TYPE:
158 case JS_MODULE_TYPE: 158 case JS_MODULE_TYPE:
159 case JS_VALUE_TYPE: 159 case JS_VALUE_TYPE:
160 case JS_DATE_TYPE: 160 case JS_DATE_TYPE:
161 case JS_ARRAY_TYPE: 161 case JS_ARRAY_TYPE:
162 case JS_GLOBAL_PROXY_TYPE: 162 case JS_GLOBAL_PROXY_TYPE:
163 case JS_GLOBAL_OBJECT_TYPE: 163 case JS_GLOBAL_OBJECT_TYPE:
164 case JS_BUILTINS_OBJECT_TYPE: 164 case JS_BUILTINS_OBJECT_TYPE:
165 case JS_MESSAGE_OBJECT_TYPE: 165 case JS_MESSAGE_OBJECT_TYPE:
166 case JS_SET_ITERATOR_TYPE:
167 case JS_MAP_ITERATOR_TYPE:
166 return GetVisitorIdForSize(kVisitJSObject, 168 return GetVisitorIdForSize(kVisitJSObject,
167 kVisitJSObjectGeneric, 169 kVisitJSObjectGeneric,
168 instance_size); 170 instance_size);
169 171
170 case JS_FUNCTION_TYPE: 172 case JS_FUNCTION_TYPE:
171 return kVisitJSFunction; 173 return kVisitJSFunction;
172 174
173 case HEAP_NUMBER_TYPE: 175 case HEAP_NUMBER_TYPE:
174 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 176 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \
175 case EXTERNAL_##TYPE##_ARRAY_TYPE: 177 case EXTERNAL_##TYPE##_ARRAY_TYPE:
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 484
483 485
484 template Object* VisitWeakList<JSArrayBuffer>( 486 template Object* VisitWeakList<JSArrayBuffer>(
485 Heap* heap, Object* list, WeakObjectRetainer* retainer, bool record_slots); 487 Heap* heap, Object* list, WeakObjectRetainer* retainer, bool record_slots);
486 488
487 489
488 template Object* VisitWeakList<AllocationSite>( 490 template Object* VisitWeakList<AllocationSite>(
489 Heap* heap, Object* list, WeakObjectRetainer* retainer, bool record_slots); 491 Heap* heap, Object* list, WeakObjectRetainer* retainer, bool record_slots);
490 492
491 } } // namespace v8::internal 493 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698