| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 preallocated_storage_preallocated_(false), | 454 preallocated_storage_preallocated_(false), |
| 455 pc_to_code_cache_(NULL), | 455 pc_to_code_cache_(NULL), |
| 456 write_input_buffer_(NULL), | 456 write_input_buffer_(NULL), |
| 457 global_handles_(NULL), | 457 global_handles_(NULL), |
| 458 context_switcher_(NULL), | 458 context_switcher_(NULL), |
| 459 thread_manager_(NULL), | 459 thread_manager_(NULL), |
| 460 ast_sentinels_(NULL), | 460 ast_sentinels_(NULL), |
| 461 string_tracker_(NULL), | 461 string_tracker_(NULL), |
| 462 regexp_stack_(NULL), | 462 regexp_stack_(NULL), |
| 463 frame_element_constant_list_(0), | 463 frame_element_constant_list_(0), |
| 464 result_constant_list_(0) { | 464 result_constant_list_(0), |
| 465 flatten_counter_(kStringFlattenInterval) { |
| 465 TRACE_ISOLATE(constructor); | 466 TRACE_ISOLATE(constructor); |
| 466 | 467 |
| 467 memset(isolate_addresses_, 0, | 468 memset(isolate_addresses_, 0, |
| 468 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); | 469 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); |
| 469 | 470 |
| 470 heap_.isolate_ = this; | 471 heap_.isolate_ = this; |
| 471 zone_.isolate_ = this; | 472 zone_.isolate_ = this; |
| 472 stack_guard_.isolate_ = this; | 473 stack_guard_.isolate_ = this; |
| 473 | 474 |
| 474 // ThreadManager is initialized early to support locking an isolate | 475 // ThreadManager is initialized early to support locking an isolate |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 | 924 |
| 924 #ifdef DEBUG | 925 #ifdef DEBUG |
| 925 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 926 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 926 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 927 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 927 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 928 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 928 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 929 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 929 #undef ISOLATE_FIELD_OFFSET | 930 #undef ISOLATE_FIELD_OFFSET |
| 930 #endif | 931 #endif |
| 931 | 932 |
| 932 } } // namespace v8::internal | 933 } } // namespace v8::internal |
| OLD | NEW |