| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // All routines return a JSFunction. | 179 // All routines return a JSFunction. |
| 180 // If an error occurs an exception is raised and | 180 // If an error occurs an exception is raised and |
| 181 // the return handle contains NULL. | 181 // the return handle contains NULL. |
| 182 | 182 |
| 183 // Compile a String source within a context. | 183 // Compile a String source within a context. |
| 184 static Handle<JSFunction> Compile(Handle<String> source, | 184 static Handle<JSFunction> Compile(Handle<String> source, |
| 185 Handle<Object> script_name, | 185 Handle<Object> script_name, |
| 186 int line_offset, int column_offset, | 186 int line_offset, int column_offset, |
| 187 v8::Extension* extension, | 187 v8::Extension* extension, |
| 188 ScriptDataImpl* script_Data); | 188 ScriptDataImpl* pre_data, |
| 189 Handle<Object> script_data); |
| 189 | 190 |
| 190 // Compile a String source within a context for Eval. | 191 // Compile a String source within a context for Eval. |
| 191 static Handle<JSFunction> CompileEval(Handle<String> source, | 192 static Handle<JSFunction> CompileEval(Handle<String> source, |
| 192 Handle<Context> context, | 193 Handle<Context> context, |
| 193 bool is_global, | 194 bool is_global, |
| 194 ValidationState validation); | 195 ValidationState validation); |
| 195 | 196 |
| 196 // Compile from function info (used for lazy compilation). Returns | 197 // Compile from function info (used for lazy compilation). Returns |
| 197 // true on success and false if the compilation resulted in a stack | 198 // true on success and false if the compilation resulted in a stack |
| 198 // overflow. | 199 // overflow. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 FrameElement::ClearConstantList(); | 236 FrameElement::ClearConstantList(); |
| 236 Result::ClearConstantList(); | 237 Result::ClearConstantList(); |
| 237 } | 238 } |
| 238 } | 239 } |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 | 242 |
| 242 } } // namespace v8::internal | 243 } } // namespace v8::internal |
| 243 | 244 |
| 244 #endif // V8_COMPILER_H_ | 245 #endif // V8_COMPILER_H_ |
| OLD | NEW |