OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-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 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3078 } else { | 3078 } else { |
3079 result = i::Debugger::Call(Utils::OpenHandle(*fun), | 3079 result = i::Debugger::Call(Utils::OpenHandle(*fun), |
3080 Utils::OpenHandle(*data), | 3080 Utils::OpenHandle(*data), |
3081 &has_pending_exception); | 3081 &has_pending_exception); |
3082 } | 3082 } |
3083 EXCEPTION_BAILOUT_CHECK(Local<Value>()); | 3083 EXCEPTION_BAILOUT_CHECK(Local<Value>()); |
3084 return Utils::ToLocal(result); | 3084 return Utils::ToLocal(result); |
3085 } | 3085 } |
3086 | 3086 |
3087 | 3087 |
3088 bool Debug::EnableAgent(int port) { | 3088 bool Debug::EnableAgent(const char* name, int port) { |
3089 return i::Debugger::StartAgent(port); | 3089 return i::Debugger::StartAgent(name, port); |
3090 } | 3090 } |
3091 | 3091 |
3092 | 3092 |
3093 namespace internal { | 3093 namespace internal { |
3094 | 3094 |
3095 | 3095 |
3096 HandleScopeImplementer* HandleScopeImplementer::instance() { | 3096 HandleScopeImplementer* HandleScopeImplementer::instance() { |
3097 return &thread_local; | 3097 return &thread_local; |
3098 } | 3098 } |
3099 | 3099 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3164 reinterpret_cast<HandleScopeImplementer*>(storage); | 3164 reinterpret_cast<HandleScopeImplementer*>(storage); |
3165 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3165 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3166 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3166 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3167 &thread_local->handle_scope_data_; | 3167 &thread_local->handle_scope_data_; |
3168 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3168 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3169 | 3169 |
3170 return storage + ArchiveSpacePerThread(); | 3170 return storage + ArchiveSpacePerThread(); |
3171 } | 3171 } |
3172 | 3172 |
3173 } } // namespace v8::internal | 3173 } } // namespace v8::internal |
OLD | NEW |