OLD | NEW |
1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 CPU::Setup(); | 710 CPU::Setup(); |
711 | 711 |
712 deoptimizer_data_ = new DeoptimizerData; | 712 deoptimizer_data_ = new DeoptimizerData; |
713 runtime_profiler_ = new RuntimeProfiler(this); | 713 runtime_profiler_ = new RuntimeProfiler(this); |
714 runtime_profiler_->Setup(); | 714 runtime_profiler_->Setup(); |
715 | 715 |
716 // If we are deserializing, log non-function code objects and compiled | 716 // If we are deserializing, log non-function code objects and compiled |
717 // functions found in the snapshot. | 717 // functions found in the snapshot. |
718 if (des != NULL && FLAG_log_code) { | 718 if (des != NULL && FLAG_log_code) { |
719 HandleScope scope; | 719 HandleScope scope; |
720 LOG(LogCodeObjects()); | 720 LOG(this,LogCodeObjects()); |
721 LOG(LogCompiledFunctions()); | 721 LOG(this,LogCompiledFunctions()); |
722 } | 722 } |
723 | 723 |
724 state_ = INITIALIZED; | 724 state_ = INITIALIZED; |
725 return true; | 725 return true; |
726 } | 726 } |
727 | 727 |
728 | 728 |
729 void Isolate::Enter() { | 729 void Isolate::Enter() { |
730 Isolate* current_isolate = NULL; | 730 Isolate* current_isolate = NULL; |
731 PerIsolateThreadData* current_data = CurrentPerIsolateThreadData(); | 731 PerIsolateThreadData* current_data = CurrentPerIsolateThreadData(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 | 804 |
805 #ifdef DEBUG | 805 #ifdef DEBUG |
806 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 806 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
807 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 807 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
808 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 808 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
809 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 809 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
810 #undef ISOLATE_FIELD_OFFSET | 810 #undef ISOLATE_FIELD_OFFSET |
811 #endif | 811 #endif |
812 | 812 |
813 } } // namespace v8::internal | 813 } } // namespace v8::internal |
OLD | NEW |