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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); | 1958 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); |
1959 write_input_buffer_ = new StringInputBuffer(); | 1959 write_input_buffer_ = new StringInputBuffer(); |
1960 global_handles_ = new GlobalHandles(this); | 1960 global_handles_ = new GlobalHandles(this); |
1961 bootstrapper_ = new Bootstrapper(); | 1961 bootstrapper_ = new Bootstrapper(); |
1962 handle_scope_implementer_ = new HandleScopeImplementer(this); | 1962 handle_scope_implementer_ = new HandleScopeImplementer(this); |
1963 stub_cache_ = new StubCache(this, runtime_zone()); | 1963 stub_cache_ = new StubCache(this, runtime_zone()); |
1964 regexp_stack_ = new RegExpStack(); | 1964 regexp_stack_ = new RegExpStack(); |
1965 regexp_stack_->isolate_ = this; | 1965 regexp_stack_->isolate_ = this; |
1966 date_cache_ = new DateCache(); | 1966 date_cache_ = new DateCache(); |
1967 code_stub_interface_descriptors_ = | 1967 code_stub_interface_descriptors_ = |
1968 new CodeStubInterfaceDescriptor*[CodeStub::NUMBER_OF_IDS]; | 1968 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; |
1969 memset(code_stub_interface_descriptors_, 0, | 1969 memset(code_stub_interface_descriptors_, 0, |
1970 kPointerSize * CodeStub::NUMBER_OF_IDS); | 1970 kPointerSize * CodeStub::NUMBER_OF_IDS); |
1971 | 1971 |
1972 // Enable logging before setting up the heap | 1972 // Enable logging before setting up the heap |
1973 logger_->SetUp(); | 1973 logger_->SetUp(); |
1974 | 1974 |
1975 CpuProfiler::SetUp(); | 1975 CpuProfiler::SetUp(); |
1976 HeapProfiler::SetUp(); | 1976 HeapProfiler::SetUp(); |
1977 | 1977 |
1978 // Initialize other runtime facilities | 1978 // Initialize other runtime facilities |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 } | 2187 } |
2188 if (deferred->next_ != NULL) { | 2188 if (deferred->next_ != NULL) { |
2189 deferred->next_->previous_ = deferred->previous_; | 2189 deferred->next_->previous_ = deferred->previous_; |
2190 } | 2190 } |
2191 if (deferred->previous_ != NULL) { | 2191 if (deferred->previous_ != NULL) { |
2192 deferred->previous_->next_ = deferred->next_; | 2192 deferred->previous_->next_ = deferred->next_; |
2193 } | 2193 } |
2194 } | 2194 } |
2195 | 2195 |
2196 | 2196 |
| 2197 CodeStubInterfaceDescriptor* |
| 2198 Isolate::code_stub_interface_descriptor(int index) { |
| 2199 return code_stub_interface_descriptors_ + index; |
| 2200 } |
| 2201 |
| 2202 |
2197 #ifdef DEBUG | 2203 #ifdef DEBUG |
2198 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2204 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2199 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2205 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2200 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2206 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2201 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2207 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2202 #undef ISOLATE_FIELD_OFFSET | 2208 #undef ISOLATE_FIELD_OFFSET |
2203 #endif | 2209 #endif |
2204 | 2210 |
2205 } } // namespace v8::internal | 2211 } } // namespace v8::internal |
OLD | NEW |