| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 3094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3105 i::Logger::PauseProfiler(); | 3105 i::Logger::PauseProfiler(); |
| 3106 #endif | 3106 #endif |
| 3107 } | 3107 } |
| 3108 | 3108 |
| 3109 void V8::ResumeProfiler() { | 3109 void V8::ResumeProfiler() { |
| 3110 #ifdef ENABLE_LOGGING_AND_PROFILING | 3110 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 3111 i::Logger::ResumeProfiler(); | 3111 i::Logger::ResumeProfiler(); |
| 3112 #endif | 3112 #endif |
| 3113 } | 3113 } |
| 3114 | 3114 |
| 3115 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { |
| 3116 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 3117 return i::Logger::GetLogLines(from_pos, dest_buf, max_size); |
| 3118 #endif |
| 3119 } |
| 3115 | 3120 |
| 3116 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { | 3121 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { |
| 3117 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); | 3122 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); |
| 3118 if (obj.IsEmpty()) { | 3123 if (obj.IsEmpty()) { |
| 3119 str_ = NULL; | 3124 str_ = NULL; |
| 3120 length_ = 0; | 3125 length_ = 0; |
| 3121 return; | 3126 return; |
| 3122 } | 3127 } |
| 3123 ENTER_V8; | 3128 ENTER_V8; |
| 3124 HandleScope scope; | 3129 HandleScope scope; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3453 reinterpret_cast<HandleScopeImplementer*>(storage); | 3458 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3454 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3459 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
| 3455 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3460 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
| 3456 &thread_local->handle_scope_data_; | 3461 &thread_local->handle_scope_data_; |
| 3457 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3462 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
| 3458 | 3463 |
| 3459 return storage + ArchiveSpacePerThread(); | 3464 return storage + ArchiveSpacePerThread(); |
| 3460 } | 3465 } |
| 3461 | 3466 |
| 3462 } } // namespace v8::internal | 3467 } } // namespace v8::internal |
| OLD | NEW |