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

Side by Side Diff: src/contexts.h

Issue 1135493006: Revert of [strong] Object literals create strong objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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) \
89 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 88 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
90 V(JSON_OBJECT_INDEX, JSObject, json_object) \ 89 V(JSON_OBJECT_INDEX, JSObject, json_object) \
91 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 90 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
92 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 91 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
93 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ 92 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \
94 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 93 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
95 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
96 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
97 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
98 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 INITIAL_ARRAY_PROTOTYPE_INDEX, 334 INITIAL_ARRAY_PROTOTYPE_INDEX,
336 BOOLEAN_FUNCTION_INDEX, 335 BOOLEAN_FUNCTION_INDEX,
337 NUMBER_FUNCTION_INDEX, 336 NUMBER_FUNCTION_INDEX,
338 STRING_FUNCTION_INDEX, 337 STRING_FUNCTION_INDEX,
339 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, 338 STRING_FUNCTION_PROTOTYPE_MAP_INDEX,
340 SYMBOL_FUNCTION_INDEX, 339 SYMBOL_FUNCTION_INDEX,
341 OBJECT_FUNCTION_INDEX, 340 OBJECT_FUNCTION_INDEX,
342 INTERNAL_ARRAY_FUNCTION_INDEX, 341 INTERNAL_ARRAY_FUNCTION_INDEX,
343 ARRAY_FUNCTION_INDEX, 342 ARRAY_FUNCTION_INDEX,
344 JS_ARRAY_MAPS_INDEX, 343 JS_ARRAY_MAPS_INDEX,
345 JS_ARRAY_STRONG_MAPS_INDEX,
346 DATE_FUNCTION_INDEX, 344 DATE_FUNCTION_INDEX,
347 JSON_OBJECT_INDEX, 345 JSON_OBJECT_INDEX,
348 REGEXP_FUNCTION_INDEX, 346 REGEXP_FUNCTION_INDEX,
349 CREATE_DATE_FUN_INDEX, 347 CREATE_DATE_FUN_INDEX,
350 TO_NUMBER_FUN_INDEX, 348 TO_NUMBER_FUN_INDEX,
351 TO_STRING_FUN_INDEX, 349 TO_STRING_FUN_INDEX,
352 TO_DETAIL_STRING_FUN_INDEX, 350 TO_DETAIL_STRING_FUN_INDEX,
353 TO_OBJECT_FUN_INDEX, 351 TO_OBJECT_FUN_INDEX,
354 TO_INTEGER_FUN_INDEX, 352 TO_INTEGER_FUN_INDEX,
355 TO_UINT32_FUN_INDEX, 353 TO_UINT32_FUN_INDEX,
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 626 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
629 #endif 627 #endif
630 628
631 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 629 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
632 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 630 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
633 }; 631 };
634 632
635 } } // namespace v8::internal 633 } } // namespace v8::internal
636 634
637 #endif // V8_CONTEXTS_H_ 635 #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