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 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2141 | 2141 |
2142 state_ = INITIALIZED; | 2142 state_ = INITIALIZED; |
2143 time_millis_at_init_ = OS::TimeCurrentMillis(); | 2143 time_millis_at_init_ = OS::TimeCurrentMillis(); |
2144 | 2144 |
2145 if (!create_heap_objects) { | 2145 if (!create_heap_objects) { |
2146 // Now that the heap is consistent, it's OK to generate the code for the | 2146 // Now that the heap is consistent, it's OK to generate the code for the |
2147 // deopt entry table that might have been referred to by optimized code in | 2147 // deopt entry table that might have been referred to by optimized code in |
2148 // the snapshot. | 2148 // the snapshot. |
2149 HandleScope scope(this); | 2149 HandleScope scope(this); |
2150 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 2150 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
| 2151 this, |
2151 Deoptimizer::LAZY, | 2152 Deoptimizer::LAZY, |
2152 kDeoptTableSerializeEntryCount - 1); | 2153 kDeoptTableSerializeEntryCount - 1); |
2153 } | 2154 } |
2154 | 2155 |
2155 if (!Serializer::enabled()) { | 2156 if (!Serializer::enabled()) { |
2156 // Ensure that the stub failure trampoline has been generated. | 2157 // Ensure that the stub failure trampoline has been generated. |
2157 HandleScope scope(this); | 2158 HandleScope scope(this); |
2158 CodeStub::GenerateFPStubs(this); | 2159 CodeStub::GenerateFPStubs(this); |
2159 StubFailureTrampolineStub::GenerateAheadOfTime(this); | 2160 StubFailureTrampolineStub::GenerateAheadOfTime(this); |
2160 } | 2161 } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 | 2314 |
2314 #ifdef DEBUG | 2315 #ifdef DEBUG |
2315 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2316 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2316 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2317 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2317 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2318 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2318 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2319 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2319 #undef ISOLATE_FIELD_OFFSET | 2320 #undef ISOLATE_FIELD_OFFSET |
2320 #endif | 2321 #endif |
2321 | 2322 |
2322 } } // namespace v8::internal | 2323 } } // namespace v8::internal |
OLD | NEW |