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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 | 565 |
566 // All routines return a SharedFunctionInfo. | 566 // All routines return a SharedFunctionInfo. |
567 // If an error occurs an exception is raised and the return handle | 567 // If an error occurs an exception is raised and the return handle |
568 // contains NULL. | 568 // contains NULL. |
569 | 569 |
570 // Compile a String source within a context. | 570 // Compile a String source within a context. |
571 static Handle<SharedFunctionInfo> Compile(Handle<String> source, | 571 static Handle<SharedFunctionInfo> Compile(Handle<String> source, |
572 Handle<Object> script_name, | 572 Handle<Object> script_name, |
573 int line_offset, | 573 int line_offset, |
574 int column_offset, | 574 int column_offset, |
| 575 bool is_shared_cross_origin, |
575 Handle<Context> context, | 576 Handle<Context> context, |
576 v8::Extension* extension, | 577 v8::Extension* extension, |
577 ScriptDataImpl* pre_data, | 578 ScriptDataImpl* pre_data, |
578 Handle<Object> script_data, | 579 Handle<Object> script_data, |
579 NativesFlag is_natives_code); | 580 NativesFlag is_natives_code); |
580 | 581 |
581 // Compile a String source within a context for Eval. | 582 // Compile a String source within a context for Eval. |
582 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, | 583 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, |
583 Handle<Context> context, | 584 Handle<Context> context, |
584 bool is_global, | 585 bool is_global, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 unsigned info_zone_start_allocation_size_; | 636 unsigned info_zone_start_allocation_size_; |
636 int64_t start_ticks_; | 637 int64_t start_ticks_; |
637 | 638 |
638 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 639 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
639 }; | 640 }; |
640 | 641 |
641 | 642 |
642 } } // namespace v8::internal | 643 } } // namespace v8::internal |
643 | 644 |
644 #endif // V8_COMPILER_H_ | 645 #endif // V8_COMPILER_H_ |
OLD | NEW |