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

Side by Side Diff: src/contexts.h

Issue 1204623002: Expose Map/Set methods through the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/collection.js ('k') | src/runtime/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 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 native_object_notifier_perform_change) \ 184 native_object_notifier_perform_change) \
185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ 186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ 187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \
188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ 188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \
189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ 189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
190 V(JS_MAP_FUN_INDEX, JSFunction, js_map_fun) \ 190 V(JS_MAP_FUN_INDEX, JSFunction, js_map_fun) \
191 V(JS_MAP_MAP_INDEX, Map, js_map_map) \ 191 V(JS_MAP_MAP_INDEX, Map, js_map_map) \
192 V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \ 192 V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \
193 V(JS_SET_MAP_INDEX, Map, js_set_map) \ 193 V(JS_SET_MAP_INDEX, Map, js_set_map) \
194 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \
195 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \
196 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \
197 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \
198 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
199 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
200 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
194 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ 201 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \
195 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ 202 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \
196 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 203 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
197 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 204 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
198 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 205 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
199 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 206 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
200 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ 207 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \
201 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 208 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
202 209
203 210
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, 437 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE,
431 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 438 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
432 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 439 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
433 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 440 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
434 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 441 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
435 ITERATOR_RESULT_MAP_INDEX, 442 ITERATOR_RESULT_MAP_INDEX,
436 JS_MAP_FUN_INDEX, 443 JS_MAP_FUN_INDEX,
437 JS_MAP_MAP_INDEX, 444 JS_MAP_MAP_INDEX,
438 JS_SET_FUN_INDEX, 445 JS_SET_FUN_INDEX,
439 JS_SET_MAP_INDEX, 446 JS_SET_MAP_INDEX,
447 MAP_GET_METHOD_INDEX,
448 MAP_SET_METHOD_INDEX,
449 MAP_HAS_METHOD_INDEX,
450 MAP_DELETE_METHOD_INDEX,
451 SET_ADD_METHOD_INDEX,
452 SET_HAS_METHOD_INDEX,
453 SET_DELETE_METHOD_INDEX,
440 MAP_FROM_ARRAY_INDEX, 454 MAP_FROM_ARRAY_INDEX,
441 SET_FROM_ARRAY_INDEX, 455 SET_FROM_ARRAY_INDEX,
442 MAP_ITERATOR_MAP_INDEX, 456 MAP_ITERATOR_MAP_INDEX,
443 SET_ITERATOR_MAP_INDEX, 457 SET_ITERATOR_MAP_INDEX,
444 ARRAY_VALUES_ITERATOR_INDEX, 458 ARRAY_VALUES_ITERATOR_INDEX,
445 SCRIPT_CONTEXT_TABLE_INDEX, 459 SCRIPT_CONTEXT_TABLE_INDEX,
446 MAP_CACHE_INDEX, 460 MAP_CACHE_INDEX,
447 STRONG_MAP_CACHE_INDEX, 461 STRONG_MAP_CACHE_INDEX,
448 TO_LENGTH_FUN_INDEX, 462 TO_LENGTH_FUN_INDEX,
449 NATIVES_UTILS_OBJECT_INDEX, 463 NATIVES_UTILS_OBJECT_INDEX,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 662 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
649 #endif 663 #endif
650 664
651 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 665 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
652 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 666 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
653 }; 667 };
654 668
655 } } // namespace v8::internal 669 } } // namespace v8::internal
656 670
657 #endif // V8_CONTEXTS_H_ 671 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/collection.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698