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

Side by Side Diff: src/contexts.h

Issue 2407423002: [modules] Implement @@iterator on namespace objects. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ 201 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \
202 V(PROXY_MAP_INDEX, Map, proxy_map) \ 202 V(PROXY_MAP_INDEX, Map, proxy_map) \
203 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \ 203 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \
204 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 204 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
205 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 205 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
206 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 206 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
207 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 207 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
208 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 208 V(SECURITY_TOKEN_INDEX, Object, security_token) \
209 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ 209 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \
210 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 210 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
211 V(FIXED_ARRAY_ITERATOR_MAP_INDEX, Map, fixed_array_iterator_map) \
211 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ 212 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \
212 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ 213 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \
213 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ 214 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \
214 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 215 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
215 sloppy_function_without_prototype_map) \ 216 sloppy_function_without_prototype_map) \
216 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ 217 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \
217 sloppy_function_with_readonly_prototype_map) \ 218 sloppy_function_with_readonly_prototype_map) \
218 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ 219 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \
219 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ 220 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \
220 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ 221 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 #endif 564 #endif
564 565
565 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 566 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
566 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 567 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
567 }; 568 };
568 569
569 } // namespace internal 570 } // namespace internal
570 } // namespace v8 571 } // namespace v8
571 572
572 #endif // V8_CONTEXTS_H_ 573 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698