| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 5070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5081 } | 5081 } |
| 5082 } | 5082 } |
| 5083 | 5083 |
| 5084 // If the candidate found is compiled we are done. NOTE: when lazy | 5084 // If the candidate found is compiled we are done. NOTE: when lazy |
| 5085 // compilation of inner functions is introduced some additional checking | 5085 // compilation of inner functions is introduced some additional checking |
| 5086 // needs to be done here to compile inner functions. | 5086 // needs to be done here to compile inner functions. |
| 5087 done = target->is_compiled(); | 5087 done = target->is_compiled(); |
| 5088 if (!done) { | 5088 if (!done) { |
| 5089 // If the candidate is not compiled compile it to reveal any inner | 5089 // If the candidate is not compiled compile it to reveal any inner |
| 5090 // functions which might contain the requested source position. | 5090 // functions which might contain the requested source position. |
| 5091 CompileLazyShared(target, KEEP_EXCEPTION); | 5091 CompileLazyShared(target, KEEP_EXCEPTION, 0); |
| 5092 } | 5092 } |
| 5093 } | 5093 } |
| 5094 | 5094 |
| 5095 return *target; | 5095 return *target; |
| 5096 } | 5096 } |
| 5097 | 5097 |
| 5098 | 5098 |
| 5099 // Change the state of a break point in a script. NOTE: Regarding performance | 5099 // Change the state of a break point in a script. NOTE: Regarding performance |
| 5100 // see the NOTE for GetScriptFromScriptData. | 5100 // see the NOTE for GetScriptFromScriptData. |
| 5101 // args[0]: script to set break point in | 5101 // args[0]: script to set break point in |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5872 } else { | 5872 } else { |
| 5873 // Handle last resort GC and make sure to allow future allocations | 5873 // Handle last resort GC and make sure to allow future allocations |
| 5874 // to grow the heap without causing GCs (if possible). | 5874 // to grow the heap without causing GCs (if possible). |
| 5875 Counters::gc_last_resort_from_js.Increment(); | 5875 Counters::gc_last_resort_from_js.Increment(); |
| 5876 Heap::CollectAllGarbage(); | 5876 Heap::CollectAllGarbage(); |
| 5877 } | 5877 } |
| 5878 } | 5878 } |
| 5879 | 5879 |
| 5880 | 5880 |
| 5881 } } // namespace v8::internal | 5881 } } // namespace v8::internal |
| OLD | NEW |