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

Side by Side Diff: src/contexts.h

Issue 1134333005: [strong] Object literals create strong objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test Created 5 years, 7 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') | src/factory.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 78 V(SECURITY_TOKEN_INDEX, Object, security_token) \
79 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 79 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
80 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 80 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
81 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ 81 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
82 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ 82 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \
83 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ 83 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
84 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 84 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
85 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \ 85 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \
86 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 86 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
87 V(JS_ARRAY_MAPS_INDEX, Object, js_array_maps) \ 87 V(JS_ARRAY_MAPS_INDEX, Object, js_array_maps) \
88 V(JS_ARRAY_STRONG_MAPS_INDEX, Object, js_array_strong_maps) \
88 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 89 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
89 V(JSON_OBJECT_INDEX, JSObject, json_object) \ 90 V(JSON_OBJECT_INDEX, JSObject, json_object) \
90 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 91 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
91 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 92 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
92 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ 93 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \
93 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 94 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 95 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 96 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 97 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 98 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 INITIAL_ARRAY_PROTOTYPE_INDEX, 335 INITIAL_ARRAY_PROTOTYPE_INDEX,
335 BOOLEAN_FUNCTION_INDEX, 336 BOOLEAN_FUNCTION_INDEX,
336 NUMBER_FUNCTION_INDEX, 337 NUMBER_FUNCTION_INDEX,
337 STRING_FUNCTION_INDEX, 338 STRING_FUNCTION_INDEX,
338 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, 339 STRING_FUNCTION_PROTOTYPE_MAP_INDEX,
339 SYMBOL_FUNCTION_INDEX, 340 SYMBOL_FUNCTION_INDEX,
340 OBJECT_FUNCTION_INDEX, 341 OBJECT_FUNCTION_INDEX,
341 INTERNAL_ARRAY_FUNCTION_INDEX, 342 INTERNAL_ARRAY_FUNCTION_INDEX,
342 ARRAY_FUNCTION_INDEX, 343 ARRAY_FUNCTION_INDEX,
343 JS_ARRAY_MAPS_INDEX, 344 JS_ARRAY_MAPS_INDEX,
345 JS_ARRAY_STRONG_MAPS_INDEX,
344 DATE_FUNCTION_INDEX, 346 DATE_FUNCTION_INDEX,
345 JSON_OBJECT_INDEX, 347 JSON_OBJECT_INDEX,
346 REGEXP_FUNCTION_INDEX, 348 REGEXP_FUNCTION_INDEX,
347 CREATE_DATE_FUN_INDEX, 349 CREATE_DATE_FUN_INDEX,
348 TO_NUMBER_FUN_INDEX, 350 TO_NUMBER_FUN_INDEX,
349 TO_STRING_FUN_INDEX, 351 TO_STRING_FUN_INDEX,
350 TO_DETAIL_STRING_FUN_INDEX, 352 TO_DETAIL_STRING_FUN_INDEX,
351 TO_OBJECT_FUN_INDEX, 353 TO_OBJECT_FUN_INDEX,
352 TO_INTEGER_FUN_INDEX, 354 TO_INTEGER_FUN_INDEX,
353 TO_UINT32_FUN_INDEX, 355 TO_UINT32_FUN_INDEX,
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 628 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
627 #endif 629 #endif
628 630
629 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 631 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
630 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 632 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
631 }; 633 };
632 634
633 } } // namespace v8::internal 635 } } // namespace v8::internal
634 636
635 #endif // V8_CONTEXTS_H_ 637 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698