| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 | 1283 |
| 1284 isolate->heap()->EnsureHeapIsIterable(); | 1284 isolate->heap()->EnsureHeapIsIterable(); |
| 1285 | 1285 |
| 1286 if (IsJSFunctionCode(shared_info->code())) { | 1286 if (IsJSFunctionCode(shared_info->code())) { |
| 1287 Handle<Code> code = compile_info_wrapper.GetFunctionCode(); | 1287 Handle<Code> code = compile_info_wrapper.GetFunctionCode(); |
| 1288 ReplaceCodeObject(Handle<Code>(shared_info->code()), code); | 1288 ReplaceCodeObject(Handle<Code>(shared_info->code()), code); |
| 1289 Handle<Object> code_scope_info = compile_info_wrapper.GetCodeScopeInfo(); | 1289 Handle<Object> code_scope_info = compile_info_wrapper.GetCodeScopeInfo(); |
| 1290 if (code_scope_info->IsFixedArray()) { | 1290 if (code_scope_info->IsFixedArray()) { |
| 1291 shared_info->set_scope_info(ScopeInfo::cast(*code_scope_info)); | 1291 shared_info->set_scope_info(ScopeInfo::cast(*code_scope_info)); |
| 1292 } | 1292 } |
| 1293 shared_info->DisableOptimization(kLiveEdit); |
| 1293 } | 1294 } |
| 1294 | 1295 |
| 1295 if (shared_info->debug_info()->IsDebugInfo()) { | 1296 if (shared_info->debug_info()->IsDebugInfo()) { |
| 1296 Handle<DebugInfo> debug_info(DebugInfo::cast(shared_info->debug_info())); | 1297 Handle<DebugInfo> debug_info(DebugInfo::cast(shared_info->debug_info())); |
| 1297 Handle<Code> new_original_code = | 1298 Handle<Code> new_original_code = |
| 1298 isolate->factory()->CopyCode(compile_info_wrapper.GetFunctionCode()); | 1299 isolate->factory()->CopyCode(compile_info_wrapper.GetFunctionCode()); |
| 1299 debug_info->set_original_code(*new_original_code); | 1300 debug_info->set_original_code(*new_original_code); |
| 1300 } | 1301 } |
| 1301 | 1302 |
| 1302 int start_position = compile_info_wrapper.GetStartPosition(); | 1303 int start_position = compile_info_wrapper.GetStartPosition(); |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2127 | 2128 |
| 2128 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2129 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 2129 return false; | 2130 return false; |
| 2130 } | 2131 } |
| 2131 | 2132 |
| 2132 #endif // ENABLE_DEBUGGER_SUPPORT | 2133 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2133 | 2134 |
| 2134 | 2135 |
| 2135 | 2136 |
| 2136 } } // namespace v8::internal | 2137 } } // namespace v8::internal |
| OLD | NEW |