| OLD | NEW | 
|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1013     } | 1013     } | 
| 1014     message_buffer_ = NewArray<char>(kMessageBufferSize); | 1014     message_buffer_ = NewArray<char>(kMessageBufferSize); | 
| 1015     mutex_ = OS::CreateMutex(); | 1015     mutex_ = OS::CreateMutex(); | 
| 1016   } | 1016   } | 
| 1017 | 1017 | 
| 1018   current_state_ = new VMState(OTHER); | 1018   current_state_ = new VMState(OTHER); | 
| 1019 | 1019 | 
| 1020   // as log is initialized early with V8, we can assume that JS execution | 1020   // as log is initialized early with V8, we can assume that JS execution | 
| 1021   // frames can never reach this point on stack | 1021   // frames can never reach this point on stack | 
| 1022   int stack_var; | 1022   int stack_var; | 
| 1023   ticker_ = new Ticker(10, reinterpret_cast<unsigned int>(&stack_var)); | 1023   ticker_ = new Ticker(1, reinterpret_cast<unsigned int>(&stack_var)); | 
| 1024 | 1024 | 
| 1025   if (FLAG_sliding_state_window && sliding_state_window_ == NULL) { | 1025   if (FLAG_sliding_state_window && sliding_state_window_ == NULL) { | 
| 1026     sliding_state_window_ = new SlidingStateWindow(); | 1026     sliding_state_window_ = new SlidingStateWindow(); | 
| 1027   } | 1027   } | 
| 1028 | 1028 | 
| 1029   if (FLAG_prof) { | 1029   if (FLAG_prof) { | 
| 1030     profiler_ = new Profiler(); | 1030     profiler_ = new Profiler(); | 
| 1031     if (!FLAG_prof_auto) | 1031     if (!FLAG_prof_auto) | 
| 1032       profiler_->pause(); | 1032       profiler_->pause(); | 
| 1033     profiler_->Engage(); | 1033     profiler_->Engage(); | 
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1128   if (FLAG_log_state_changes) { | 1128   if (FLAG_log_state_changes) { | 
| 1129     LOG(UncheckedStringEvent("Leaving", StateToString(state_))); | 1129     LOG(UncheckedStringEvent("Leaving", StateToString(state_))); | 
| 1130     if (previous_) { | 1130     if (previous_) { | 
| 1131       LOG(UncheckedStringEvent("To", StateToString(previous_->state_))); | 1131       LOG(UncheckedStringEvent("To", StateToString(previous_->state_))); | 
| 1132     } | 1132     } | 
| 1133   } | 1133   } | 
| 1134 } | 1134 } | 
| 1135 #endif | 1135 #endif | 
| 1136 | 1136 | 
| 1137 } }  // namespace v8::internal | 1137 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|