| 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 // Deserializing may put strange things in the root array's copy of the | 811 // Deserializing may put strange things in the root array's copy of the |
| 812 // stack guard. | 812 // stack guard. |
| 813 heap_.SetStackLimits(); | 813 heap_.SetStackLimits(); |
| 814 | 814 |
| 815 deoptimizer_data_ = new DeoptimizerData; | 815 deoptimizer_data_ = new DeoptimizerData; |
| 816 runtime_profiler_ = new RuntimeProfiler(this); | 816 runtime_profiler_ = new RuntimeProfiler(this); |
| 817 runtime_profiler_->Setup(); | 817 runtime_profiler_->Setup(); |
| 818 | 818 |
| 819 // If we are deserializing, log non-function code objects and compiled | 819 // If we are deserializing, log non-function code objects and compiled |
| 820 // functions found in the snapshot. | 820 // functions found in the snapshot. |
| 821 if (des != NULL && FLAG_log_code) { | 821 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) { |
| 822 HandleScope scope; | 822 HandleScope scope; |
| 823 LOG(this, LogCodeObjects()); | 823 LOG(this, LogCodeObjects()); |
| 824 LOG(this, LogCompiledFunctions()); | 824 LOG(this, LogCompiledFunctions()); |
| 825 } | 825 } |
| 826 | 826 |
| 827 state_ = INITIALIZED; | 827 state_ = INITIALIZED; |
| 828 return true; | 828 return true; |
| 829 } | 829 } |
| 830 | 830 |
| 831 | 831 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 | 907 |
| 908 #ifdef DEBUG | 908 #ifdef DEBUG |
| 909 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 909 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 910 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 910 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 911 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 911 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 912 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 912 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 913 #undef ISOLATE_FIELD_OFFSET | 913 #undef ISOLATE_FIELD_OFFSET |
| 914 #endif | 914 #endif |
| 915 | 915 |
| 916 } } // namespace v8::internal | 916 } } // namespace v8::internal |
| OLD | NEW |