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

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

Issue 13542002: Calling a generator function returns a generator object (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Fix nits; generator object fields are undefined if not set Created 7 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
« no previous file with comments | « src/objects-printer.cc ('k') | src/parser.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Foreign::kSize); 129 Foreign::kSize);
130 130
131 case SYMBOL_TYPE: 131 case SYMBOL_TYPE:
132 return kVisitSymbol; 132 return kVisitSymbol;
133 133
134 case FILLER_TYPE: 134 case FILLER_TYPE:
135 return kVisitDataObjectGeneric; 135 return kVisitDataObjectGeneric;
136 136
137 case JS_OBJECT_TYPE: 137 case JS_OBJECT_TYPE:
138 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 138 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
139 case JS_GENERATOR_OBJECT_TYPE:
139 case JS_MODULE_TYPE: 140 case JS_MODULE_TYPE:
140 case JS_VALUE_TYPE: 141 case JS_VALUE_TYPE:
141 case JS_DATE_TYPE: 142 case JS_DATE_TYPE:
142 case JS_ARRAY_TYPE: 143 case JS_ARRAY_TYPE:
143 case JS_GLOBAL_PROXY_TYPE: 144 case JS_GLOBAL_PROXY_TYPE:
144 case JS_GLOBAL_OBJECT_TYPE: 145 case JS_GLOBAL_OBJECT_TYPE:
145 case JS_BUILTINS_OBJECT_TYPE: 146 case JS_BUILTINS_OBJECT_TYPE:
146 case JS_MESSAGE_OBJECT_TYPE: 147 case JS_MESSAGE_OBJECT_TYPE:
147 case JS_ARRAY_BUFFER_TYPE: 148 case JS_ARRAY_BUFFER_TYPE:
148 return GetVisitorIdForSize(kVisitJSObject, 149 return GetVisitorIdForSize(kVisitJSObject,
(...skipping 25 matching lines...) Expand all
174 kVisitStructGeneric, 175 kVisitStructGeneric,
175 instance_size); 176 instance_size);
176 177
177 default: 178 default:
178 UNREACHABLE(); 179 UNREACHABLE();
179 return kVisitorIdCount; 180 return kVisitorIdCount;
180 } 181 }
181 } 182 }
182 183
183 } } // namespace v8::internal 184 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698