| OLD | NEW |
| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ | 97 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ |
| 98 V(JSON_OBJECT_INDEX, JSObject, json_object) \ | 98 V(JSON_OBJECT_INDEX, JSObject, json_object) \ |
| 99 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ | 99 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ |
| 100 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ | 100 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ |
| 101 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ | 101 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ |
| 102 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ | 102 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ |
| 103 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ | 103 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
| 104 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 104 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
| 105 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 105 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
| 106 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ | 106 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
| 107 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ | |
| 108 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ | |
| 109 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ | 107 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ |
| 110 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 108 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
| 111 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ | 109 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ |
| 112 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 110 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
| 113 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ | 111 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ |
| 114 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 112 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
| 115 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ | 113 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ |
| 116 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 114 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
| 117 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ | 115 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ |
| 118 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 116 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 JS_ARRAY_MAPS_INDEX, | 365 JS_ARRAY_MAPS_INDEX, |
| 368 JS_ARRAY_STRONG_MAPS_INDEX, | 366 JS_ARRAY_STRONG_MAPS_INDEX, |
| 369 DATE_FUNCTION_INDEX, | 367 DATE_FUNCTION_INDEX, |
| 370 JSON_OBJECT_INDEX, | 368 JSON_OBJECT_INDEX, |
| 371 REGEXP_FUNCTION_INDEX, | 369 REGEXP_FUNCTION_INDEX, |
| 372 CREATE_DATE_FUN_INDEX, | 370 CREATE_DATE_FUN_INDEX, |
| 373 TO_NUMBER_FUN_INDEX, | 371 TO_NUMBER_FUN_INDEX, |
| 374 TO_STRING_FUN_INDEX, | 372 TO_STRING_FUN_INDEX, |
| 375 TO_DETAIL_STRING_FUN_INDEX, | 373 TO_DETAIL_STRING_FUN_INDEX, |
| 376 TO_INTEGER_FUN_INDEX, | 374 TO_INTEGER_FUN_INDEX, |
| 377 TO_UINT32_FUN_INDEX, | |
| 378 TO_INT32_FUN_INDEX, | |
| 379 TO_BOOLEAN_FUN_INDEX, | |
| 380 GLOBAL_EVAL_FUN_INDEX, | 375 GLOBAL_EVAL_FUN_INDEX, |
| 381 ARRAY_BUFFER_FUN_INDEX, | 376 ARRAY_BUFFER_FUN_INDEX, |
| 382 ARRAY_BUFFER_MAP_INDEX, | 377 ARRAY_BUFFER_MAP_INDEX, |
| 383 UINT8_ARRAY_FUN_INDEX, | 378 UINT8_ARRAY_FUN_INDEX, |
| 384 INT8_ARRAY_FUN_INDEX, | 379 INT8_ARRAY_FUN_INDEX, |
| 385 UINT16_ARRAY_FUN_INDEX, | 380 UINT16_ARRAY_FUN_INDEX, |
| 386 INT16_ARRAY_FUN_INDEX, | 381 INT16_ARRAY_FUN_INDEX, |
| 387 UINT32_ARRAY_FUN_INDEX, | 382 UINT32_ARRAY_FUN_INDEX, |
| 388 INT32_ARRAY_FUN_INDEX, | 383 INT32_ARRAY_FUN_INDEX, |
| 389 FLOAT32_ARRAY_FUN_INDEX, | 384 FLOAT32_ARRAY_FUN_INDEX, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 664 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
| 670 #endif | 665 #endif |
| 671 | 666 |
| 672 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 667 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 673 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 668 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 674 }; | 669 }; |
| 675 | 670 |
| 676 } } // namespace v8::internal | 671 } } // namespace v8::internal |
| 677 | 672 |
| 678 #endif // V8_CONTEXTS_H_ | 673 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |