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.h" | 8 #include "src/heap.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ | 94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ | 97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ |
98 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ | 98 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
99 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ | 99 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ |
100 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ | 100 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ |
101 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 101 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
102 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ | 102 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ |
103 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ | 103 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ |
| 104 V(MATH_ABS_FUN_INDEX, JSFunction, math_abs_fun) \ |
| 105 V(MATH_ACOS_FUN_INDEX, JSFunction, math_acos_fun) \ |
| 106 V(MATH_ASIN_FUN_INDEX, JSFunction, math_asin_fun) \ |
| 107 V(MATH_ATAN_FUN_INDEX, JSFunction, math_atan_fun) \ |
| 108 V(MATH_ATAN2_FUN_INDEX, JSFunction, math_atan2_fun) \ |
| 109 V(MATH_CEIL_FUN_INDEX, JSFunction, math_ceil_fun) \ |
| 110 V(MATH_COS_FUN_INDEX, JSFunction, math_cos_fun) \ |
| 111 V(MATH_EXP_FUN_INDEX, JSFunction, math_exp_fun) \ |
| 112 V(MATH_FLOOR_FUN_INDEX, JSFunction, math_floor_fun) \ |
| 113 V(MATH_IMUL_FUN_INDEX, JSFunction, math_imul_fun) \ |
| 114 V(MATH_LOG_FUN_INDEX, JSFunction, math_log_fun) \ |
| 115 V(MATH_MAX_FUN_INDEX, JSFunction, math_max_fun) \ |
| 116 V(MATH_MIN_FUN_INDEX, JSFunction, math_min_fun) \ |
| 117 V(MATH_POW_FUN_INDEX, JSFunction, math_pow_fun) \ |
| 118 V(MATH_RANDOM_FUN_INDEX, JSFunction, math_random_fun) \ |
| 119 V(MATH_ROUND_FUN_INDEX, JSFunction, math_round_fun) \ |
| 120 V(MATH_SIN_FUN_INDEX, JSFunction, math_sin_fun) \ |
| 121 V(MATH_SQRT_FUN_INDEX, JSFunction, math_sqrt_fun) \ |
| 122 V(MATH_TAN_FUN_INDEX, JSFunction, math_tan_fun) \ |
104 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ | 123 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ |
105 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 124 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
106 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ | 125 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ |
107 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 126 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
108 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ | 127 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ |
109 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 128 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
110 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ | 129 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ |
111 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ | 130 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ |
112 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ | 131 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ |
113 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 132 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 TO_STRING_FUN_INDEX, | 303 TO_STRING_FUN_INDEX, |
285 TO_DETAIL_STRING_FUN_INDEX, | 304 TO_DETAIL_STRING_FUN_INDEX, |
286 TO_OBJECT_FUN_INDEX, | 305 TO_OBJECT_FUN_INDEX, |
287 TO_INTEGER_FUN_INDEX, | 306 TO_INTEGER_FUN_INDEX, |
288 TO_UINT32_FUN_INDEX, | 307 TO_UINT32_FUN_INDEX, |
289 TO_INT32_FUN_INDEX, | 308 TO_INT32_FUN_INDEX, |
290 TO_BOOLEAN_FUN_INDEX, | 309 TO_BOOLEAN_FUN_INDEX, |
291 GLOBAL_EVAL_FUN_INDEX, | 310 GLOBAL_EVAL_FUN_INDEX, |
292 INSTANTIATE_FUN_INDEX, | 311 INSTANTIATE_FUN_INDEX, |
293 CONFIGURE_INSTANCE_FUN_INDEX, | 312 CONFIGURE_INSTANCE_FUN_INDEX, |
| 313 MATH_ABS_FUN_INDEX, |
| 314 MATH_ACOS_FUN_INDEX, |
| 315 MATH_ASIN_FUN_INDEX, |
| 316 MATH_ATAN_FUN_INDEX, |
| 317 MATH_ATAN2_FUN_INDEX, |
| 318 MATH_CEIL_FUN_INDEX, |
| 319 MATH_COS_FUN_INDEX, |
| 320 MATH_EXP_FUN_INDEX, |
| 321 MATH_FLOOR_FUN_INDEX, |
| 322 MATH_IMUL_FUN_INDEX, |
| 323 MATH_LOG_FUN_INDEX, |
| 324 MATH_MAX_FUN_INDEX, |
| 325 MATH_MIN_FUN_INDEX, |
| 326 MATH_POW_FUN_INDEX, |
| 327 MATH_RANDOM_FUN_INDEX, |
| 328 MATH_ROUND_FUN_INDEX, |
| 329 MATH_SIN_FUN_INDEX, |
| 330 MATH_SQRT_FUN_INDEX, |
| 331 MATH_TAN_FUN_INDEX, |
294 ARRAY_BUFFER_FUN_INDEX, | 332 ARRAY_BUFFER_FUN_INDEX, |
295 UINT8_ARRAY_FUN_INDEX, | 333 UINT8_ARRAY_FUN_INDEX, |
296 INT8_ARRAY_FUN_INDEX, | 334 INT8_ARRAY_FUN_INDEX, |
297 UINT16_ARRAY_FUN_INDEX, | 335 UINT16_ARRAY_FUN_INDEX, |
298 INT16_ARRAY_FUN_INDEX, | 336 INT16_ARRAY_FUN_INDEX, |
299 UINT32_ARRAY_FUN_INDEX, | 337 UINT32_ARRAY_FUN_INDEX, |
300 INT32_ARRAY_FUN_INDEX, | 338 INT32_ARRAY_FUN_INDEX, |
301 FLOAT32_ARRAY_FUN_INDEX, | 339 FLOAT32_ARRAY_FUN_INDEX, |
302 FLOAT64_ARRAY_FUN_INDEX, | 340 FLOAT64_ARRAY_FUN_INDEX, |
303 UINT8_CLAMPED_ARRAY_FUN_INDEX, | 341 UINT8_CLAMPED_ARRAY_FUN_INDEX, |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 580 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
543 #endif | 581 #endif |
544 | 582 |
545 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 583 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
546 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 584 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
547 }; | 585 }; |
548 | 586 |
549 } } // namespace v8::internal | 587 } } // namespace v8::internal |
550 | 588 |
551 #endif // V8_CONTEXTS_H_ | 589 #endif // V8_CONTEXTS_H_ |
OLD | NEW |