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