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 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2086 time_millis_at_init_ = OS::TimeCurrentMillis(); | 2086 time_millis_at_init_ = OS::TimeCurrentMillis(); |
2087 | 2087 |
2088 if (!create_heap_objects) { | 2088 if (!create_heap_objects) { |
2089 // Now that the heap is consistent, it's OK to generate the code for the | 2089 // Now that the heap is consistent, it's OK to generate the code for the |
2090 // deopt entry table that might have been referred to by optimized code in | 2090 // deopt entry table that might have been referred to by optimized code in |
2091 // the snapshot. | 2091 // the snapshot. |
2092 HandleScope scope(this); | 2092 HandleScope scope(this); |
2093 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 2093 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
2094 Deoptimizer::LAZY, | 2094 Deoptimizer::LAZY, |
2095 kDeoptTableSerializeEntryCount - 1); | 2095 kDeoptTableSerializeEntryCount - 1); |
| 2096 |
| 2097 // Ensure that the stub failure trampoline has been generated. |
| 2098 StubFailureTrampolineStub().GetCode(); |
2096 } | 2099 } |
2097 | 2100 |
2098 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); | 2101 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); |
2099 return true; | 2102 return true; |
2100 } | 2103 } |
2101 | 2104 |
2102 | 2105 |
2103 // Initialized lazily to allow early | 2106 // Initialized lazily to allow early |
2104 // v8::V8::SetAddHistogramSampleFunction calls. | 2107 // v8::V8::SetAddHistogramSampleFunction calls. |
2105 StatsTable* Isolate::stats_table() { | 2108 StatsTable* Isolate::stats_table() { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2217 | 2220 |
2218 #ifdef DEBUG | 2221 #ifdef DEBUG |
2219 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2222 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2220 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2223 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2221 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2224 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2222 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2225 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2223 #undef ISOLATE_FIELD_OFFSET | 2226 #undef ISOLATE_FIELD_OFFSET |
2224 #endif | 2227 #endif |
2225 | 2228 |
2226 } } // namespace v8::internal | 2229 } } // namespace v8::internal |
OLD | NEW |