OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 code_range_ = new CodeRange(this); | 2092 code_range_ = new CodeRange(this); |
2093 | 2093 |
2094 // Safe after setting Heap::isolate_, initializing StackGuard and | 2094 // Safe after setting Heap::isolate_, initializing StackGuard and |
2095 // ensuring that Isolate::Current() == this. | 2095 // ensuring that Isolate::Current() == this. |
2096 heap_.SetStackLimits(); | 2096 heap_.SetStackLimits(); |
2097 | 2097 |
2098 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ | 2098 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ |
2099 isolate_addresses_[Isolate::k##CamelName##Address] = \ | 2099 isolate_addresses_[Isolate::k##CamelName##Address] = \ |
2100 reinterpret_cast<Address>(hacker_name##_address()); | 2100 reinterpret_cast<Address>(hacker_name##_address()); |
2101 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT) | 2101 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT) |
2102 #undef C | 2102 #undef ASSIGN_ELEMENT |
2103 | 2103 |
2104 string_tracker_ = new StringTracker(); | 2104 string_tracker_ = new StringTracker(); |
2105 string_tracker_->isolate_ = this; | 2105 string_tracker_->isolate_ = this; |
2106 compilation_cache_ = new CompilationCache(this); | 2106 compilation_cache_ = new CompilationCache(this); |
2107 transcendental_cache_ = new TranscendentalCache(); | 2107 transcendental_cache_ = new TranscendentalCache(); |
2108 keyed_lookup_cache_ = new KeyedLookupCache(); | 2108 keyed_lookup_cache_ = new KeyedLookupCache(); |
2109 context_slot_cache_ = new ContextSlotCache(); | 2109 context_slot_cache_ = new ContextSlotCache(); |
2110 descriptor_lookup_cache_ = new DescriptorLookupCache(); | 2110 descriptor_lookup_cache_ = new DescriptorLookupCache(); |
2111 unicode_cache_ = new UnicodeCache(); | 2111 unicode_cache_ = new UnicodeCache(); |
2112 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 2112 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 | 2471 |
2472 #ifdef DEBUG | 2472 #ifdef DEBUG |
2473 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2473 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2474 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2474 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2475 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2475 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2476 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2476 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2477 #undef ISOLATE_FIELD_OFFSET | 2477 #undef ISOLATE_FIELD_OFFSET |
2478 #endif | 2478 #endif |
2479 | 2479 |
2480 } } // namespace v8::internal | 2480 } } // namespace v8::internal |
OLD | NEW |