OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1933 | 1933 |
1934 // Ensures the debug information is present for shared. | 1934 // Ensures the debug information is present for shared. |
1935 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) { | 1935 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) { |
1936 // Return if we already have the debug info for shared. | 1936 // Return if we already have the debug info for shared. |
1937 if (HasDebugInfo(shared)) { | 1937 if (HasDebugInfo(shared)) { |
1938 ASSERT(shared->is_compiled()); | 1938 ASSERT(shared->is_compiled()); |
1939 return true; | 1939 return true; |
1940 } | 1940 } |
1941 | 1941 |
1942 // Ensure shared in compiled. Return false if this failed. | 1942 // Ensure shared in compiled. Return false if this failed. |
1943 if (!EnsureCompiled(shared, CLEAR_EXCEPTION)) return false; | 1943 if (!SharedFunctionInfo::EnsureCompiled(shared, CLEAR_EXCEPTION)) { |
| 1944 return false; |
| 1945 } |
1944 | 1946 |
1945 // Create the debug info object. | 1947 // Create the debug info object. |
1946 Handle<DebugInfo> debug_info = FACTORY->NewDebugInfo(shared); | 1948 Handle<DebugInfo> debug_info = FACTORY->NewDebugInfo(shared); |
1947 | 1949 |
1948 // Add debug info to the list. | 1950 // Add debug info to the list. |
1949 DebugInfoListNode* node = new DebugInfoListNode(*debug_info); | 1951 DebugInfoListNode* node = new DebugInfoListNode(*debug_info); |
1950 node->set_next(debug_info_list_); | 1952 node->set_next(debug_info_list_); |
1951 debug_info_list_ = node; | 1953 debug_info_list_ = node; |
1952 | 1954 |
1953 // Now there is at least one break point. | 1955 // Now there is at least one break point. |
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3478 { | 3480 { |
3479 Locker locker; | 3481 Locker locker; |
3480 Isolate::Current()->debugger()->CallMessageDispatchHandler(); | 3482 Isolate::Current()->debugger()->CallMessageDispatchHandler(); |
3481 } | 3483 } |
3482 } | 3484 } |
3483 } | 3485 } |
3484 | 3486 |
3485 #endif // ENABLE_DEBUGGER_SUPPORT | 3487 #endif // ENABLE_DEBUGGER_SUPPORT |
3486 | 3488 |
3487 } } // namespace v8::internal | 3489 } } // namespace v8::internal |
OLD | NEW |