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 3108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 void V8::ResumeProfiler() { | 3119 void V8::ResumeProfiler() { |
3120 #ifdef ENABLE_LOGGING_AND_PROFILING | 3120 #ifdef ENABLE_LOGGING_AND_PROFILING |
3121 i::Logger::ResumeProfiler(); | 3121 i::Logger::ResumeProfiler(); |
3122 #endif | 3122 #endif |
3123 } | 3123 } |
3124 | 3124 |
3125 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { | 3125 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { |
3126 #ifdef ENABLE_LOGGING_AND_PROFILING | 3126 #ifdef ENABLE_LOGGING_AND_PROFILING |
3127 return i::Logger::GetLogLines(from_pos, dest_buf, max_size); | 3127 return i::Logger::GetLogLines(from_pos, dest_buf, max_size); |
3128 #endif | 3128 #endif |
| 3129 return 0; |
3129 } | 3130 } |
3130 | 3131 |
3131 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { | 3132 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { |
3132 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); | 3133 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); |
3133 if (obj.IsEmpty()) { | 3134 if (obj.IsEmpty()) { |
3134 str_ = NULL; | 3135 str_ = NULL; |
3135 length_ = 0; | 3136 length_ = 0; |
3136 return; | 3137 return; |
3137 } | 3138 } |
3138 ENTER_V8; | 3139 ENTER_V8; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3468 reinterpret_cast<HandleScopeImplementer*>(storage); | 3469 reinterpret_cast<HandleScopeImplementer*>(storage); |
3469 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3470 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3470 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3471 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3471 &thread_local->handle_scope_data_; | 3472 &thread_local->handle_scope_data_; |
3472 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3473 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3473 | 3474 |
3474 return storage + ArchiveSpacePerThread(); | 3475 return storage + ArchiveSpacePerThread(); |
3475 } | 3476 } |
3476 | 3477 |
3477 } } // namespace v8::internal | 3478 } } // namespace v8::internal |
OLD | NEW |