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

Side by Side Diff: src/contexts.h

Issue 1161363002: Fix Map/Set creation via the API with nosnap build (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/bootstrapper.cc ('k') | test/cctest/test-api.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 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ 180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \
181 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ 181 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \
182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ 182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \
183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ 183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \
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_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) \
191 V(JS_SET_MAP_INDEX, Map, js_set_map) \ 193 V(JS_SET_MAP_INDEX, Map, js_set_map) \
192 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ 194 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \
193 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ 195 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \
194 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 196 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
195 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 197 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
196 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 198 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
197 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 199 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
198 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ 200 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \
199 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 201 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
200 202
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 OBSERVERS_BEGIN_SPLICE_INDEX, 426 OBSERVERS_BEGIN_SPLICE_INDEX,
425 OBSERVERS_END_SPLICE_INDEX, 427 OBSERVERS_END_SPLICE_INDEX,
426 NATIVE_OBJECT_OBSERVE_INDEX, 428 NATIVE_OBJECT_OBSERVE_INDEX,
427 NATIVE_OBJECT_GET_NOTIFIER_INDEX, 429 NATIVE_OBJECT_GET_NOTIFIER_INDEX,
428 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, 430 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE,
429 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 431 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
430 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 432 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
431 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 433 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
432 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 434 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
433 ITERATOR_RESULT_MAP_INDEX, 435 ITERATOR_RESULT_MAP_INDEX,
436 JS_MAP_FUN_INDEX,
434 JS_MAP_MAP_INDEX, 437 JS_MAP_MAP_INDEX,
438 JS_SET_FUN_INDEX,
435 JS_SET_MAP_INDEX, 439 JS_SET_MAP_INDEX,
436 MAP_FROM_ARRAY_INDEX, 440 MAP_FROM_ARRAY_INDEX,
437 SET_FROM_ARRAY_INDEX, 441 SET_FROM_ARRAY_INDEX,
438 MAP_ITERATOR_MAP_INDEX, 442 MAP_ITERATOR_MAP_INDEX,
439 SET_ITERATOR_MAP_INDEX, 443 SET_ITERATOR_MAP_INDEX,
440 ARRAY_VALUES_ITERATOR_INDEX, 444 ARRAY_VALUES_ITERATOR_INDEX,
441 SCRIPT_CONTEXT_TABLE_INDEX, 445 SCRIPT_CONTEXT_TABLE_INDEX,
442 MAP_CACHE_INDEX, 446 MAP_CACHE_INDEX,
443 STRONG_MAP_CACHE_INDEX, 447 STRONG_MAP_CACHE_INDEX,
444 TO_LENGTH_FUN_INDEX, 448 TO_LENGTH_FUN_INDEX,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 648 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
645 #endif 649 #endif
646 650
647 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 651 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
648 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 652 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
649 }; 653 };
650 654
651 } } // namespace v8::internal 655 } } // namespace v8::internal
652 656
653 #endif // V8_CONTEXTS_H_ 657 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698