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 2942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2953 } else { | 2953 } else { |
2954 result = i::Debugger::Call(Utils::OpenHandle(*fun), | 2954 result = i::Debugger::Call(Utils::OpenHandle(*fun), |
2955 Utils::OpenHandle(*data), | 2955 Utils::OpenHandle(*data), |
2956 &has_pending_exception); | 2956 &has_pending_exception); |
2957 } | 2957 } |
2958 EXCEPTION_BAILOUT_CHECK(Local<Value>()); | 2958 EXCEPTION_BAILOUT_CHECK(Local<Value>()); |
2959 return Utils::ToLocal(result); | 2959 return Utils::ToLocal(result); |
2960 } | 2960 } |
2961 | 2961 |
2962 | 2962 |
| 2963 bool Debug::EnableAgent(int port) { |
| 2964 return i::Debugger::StartAgent(port); |
| 2965 } |
| 2966 |
| 2967 |
2963 namespace internal { | 2968 namespace internal { |
2964 | 2969 |
2965 | 2970 |
2966 HandleScopeImplementer* HandleScopeImplementer::instance() { | 2971 HandleScopeImplementer* HandleScopeImplementer::instance() { |
2967 return &thread_local; | 2972 return &thread_local; |
2968 } | 2973 } |
2969 | 2974 |
2970 | 2975 |
2971 char* HandleScopeImplementer::ArchiveThread(char* storage) { | 2976 char* HandleScopeImplementer::ArchiveThread(char* storage) { |
2972 return thread_local.ArchiveThreadHelper(storage); | 2977 return thread_local.ArchiveThreadHelper(storage); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3034 reinterpret_cast<HandleScopeImplementer*>(storage); | 3039 reinterpret_cast<HandleScopeImplementer*>(storage); |
3035 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3040 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3036 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3041 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3037 &thread_local->handle_scope_data_; | 3042 &thread_local->handle_scope_data_; |
3038 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3043 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3039 | 3044 |
3040 return storage + ArchiveSpacePerThread(); | 3045 return storage + ArchiveSpacePerThread(); |
3041 } | 3046 } |
3042 | 3047 |
3043 } } // namespace v8::internal | 3048 } } // namespace v8::internal |
OLD | NEW |