OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Implementation first determines, which function's body includes this | 42 // Implementation first determines, which function's body includes this |
43 // change area. Then both old and new versions of script are fully compiled | 43 // change area. Then both old and new versions of script are fully compiled |
44 // in order to analyze, whether the function changed its outer scope | 44 // in order to analyze, whether the function changed its outer scope |
45 // expectations (or number of parameters). If it didn't, function's code is | 45 // expectations (or number of parameters). If it didn't, function's code is |
46 // patched with a newly compiled code. If it did change, enclosing function | 46 // patched with a newly compiled code. If it did change, enclosing function |
47 // gets patched. All inner functions are left untouched, whatever happened | 47 // gets patched. All inner functions are left untouched, whatever happened |
48 // to them in a new script version. However, new version of code will | 48 // to them in a new script version. However, new version of code will |
49 // instantiate newly compiled functions. | 49 // instantiate newly compiled functions. |
50 | 50 |
51 | 51 |
| 52 #include "allocation.h" |
52 #include "compiler.h" | 53 #include "compiler.h" |
53 | 54 |
54 namespace v8 { | 55 namespace v8 { |
55 namespace internal { | 56 namespace internal { |
56 | 57 |
57 // This class collects some specific information on structure of functions | 58 // This class collects some specific information on structure of functions |
58 // in a particular script. It gets called from compiler all the time, but | 59 // in a particular script. It gets called from compiler all the time, but |
59 // actually records any data only when liveedit operation is in process; | 60 // actually records any data only when liveedit operation is in process; |
60 // in any other time this class is very cheap. | 61 // in any other time this class is very cheap. |
61 // | 62 // |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 static void CalculateDifference(Input* input, | 171 static void CalculateDifference(Input* input, |
171 Output* result_writer); | 172 Output* result_writer); |
172 }; | 173 }; |
173 | 174 |
174 #endif // ENABLE_DEBUGGER_SUPPORT | 175 #endif // ENABLE_DEBUGGER_SUPPORT |
175 | 176 |
176 | 177 |
177 } } // namespace v8::internal | 178 } } // namespace v8::internal |
178 | 179 |
179 #endif /* V*_LIVEEDIT_H_ */ | 180 #endif /* V*_LIVEEDIT_H_ */ |
OLD | NEW |