| 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 | 1101 |
| 1102 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); | 1102 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); |
| 1103 | 1103 |
| 1104 HEAP->EnsureHeapIsIterable(); | 1104 HEAP->EnsureHeapIsIterable(); |
| 1105 | 1105 |
| 1106 if (IsJSFunctionCode(shared_info->code())) { | 1106 if (IsJSFunctionCode(shared_info->code())) { |
| 1107 Handle<Code> code = compile_info_wrapper.GetFunctionCode(); | 1107 Handle<Code> code = compile_info_wrapper.GetFunctionCode(); |
| 1108 ReplaceCodeObject(shared_info->code(), *code); | 1108 ReplaceCodeObject(shared_info->code(), *code); |
| 1109 Handle<Object> code_scope_info = compile_info_wrapper.GetCodeScopeInfo(); | 1109 Handle<Object> code_scope_info = compile_info_wrapper.GetCodeScopeInfo(); |
| 1110 if (code_scope_info->IsFixedArray()) { | 1110 if (code_scope_info->IsFixedArray()) { |
| 1111 shared_info->set_scope_info(SerializedScopeInfo::cast(*code_scope_info)); | 1111 shared_info->set_scope_info(ScopeInfo::cast(*code_scope_info)); |
| 1112 } | 1112 } |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 if (shared_info->debug_info()->IsDebugInfo()) { | 1115 if (shared_info->debug_info()->IsDebugInfo()) { |
| 1116 Handle<DebugInfo> debug_info(DebugInfo::cast(shared_info->debug_info())); | 1116 Handle<DebugInfo> debug_info(DebugInfo::cast(shared_info->debug_info())); |
| 1117 Handle<Code> new_original_code = | 1117 Handle<Code> new_original_code = |
| 1118 FACTORY->CopyCode(compile_info_wrapper.GetFunctionCode()); | 1118 FACTORY->CopyCode(compile_info_wrapper.GetFunctionCode()); |
| 1119 debug_info->set_original_code(*new_original_code); | 1119 debug_info->set_original_code(*new_original_code); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 | 1782 |
| 1783 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 1783 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 1784 return false; | 1784 return false; |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 #endif // ENABLE_DEBUGGER_SUPPORT | 1787 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1788 | 1788 |
| 1789 | 1789 |
| 1790 | 1790 |
| 1791 } } // namespace v8::internal | 1791 } } // namespace v8::internal |
| OLD | NEW |