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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // All routines return a JSFunction. | 230 // All routines return a JSFunction. |
231 // If an error occurs an exception is raised and | 231 // If an error occurs an exception is raised and |
232 // the return handle contains NULL. | 232 // the return handle contains NULL. |
233 | 233 |
234 // Compile a String source within a context. | 234 // Compile a String source within a context. |
235 static Handle<JSFunction> Compile(Handle<String> source, | 235 static Handle<JSFunction> Compile(Handle<String> source, |
236 Handle<Object> script_name, | 236 Handle<Object> script_name, |
237 int line_offset, int column_offset, | 237 int line_offset, int column_offset, |
238 v8::Extension* extension, | 238 v8::Extension* extension, |
239 ScriptDataImpl* pre_data, | 239 ScriptDataImpl* pre_data, |
240 Handle<Object> script_data); | 240 Handle<Object> script_data, |
| 241 NativesFlag is_natives_code); |
241 | 242 |
242 // Compile a String source within a context for Eval. | 243 // Compile a String source within a context for Eval. |
243 static Handle<JSFunction> CompileEval(Handle<String> source, | 244 static Handle<JSFunction> CompileEval(Handle<String> source, |
244 Handle<Context> context, | 245 Handle<Context> context, |
245 bool is_global, | 246 bool is_global, |
246 ValidationState validation); | 247 ValidationState validation); |
247 | 248 |
248 // Compile from function info (used for lazy compilation). Returns | 249 // Compile from function info (used for lazy compilation). Returns |
249 // true on success and false if the compilation resulted in a stack | 250 // true on success and false if the compilation resulted in a stack |
250 // overflow. | 251 // overflow. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 FrameElement::ClearConstantList(); | 295 FrameElement::ClearConstantList(); |
295 Result::ClearConstantList(); | 296 Result::ClearConstantList(); |
296 } | 297 } |
297 } | 298 } |
298 }; | 299 }; |
299 | 300 |
300 | 301 |
301 } } // namespace v8::internal | 302 } } // namespace v8::internal |
302 | 303 |
303 #endif // V8_COMPILER_H_ | 304 #endif // V8_COMPILER_H_ |
OLD | NEW |