Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Side by Side Diff: src/compiler.h

Issue 1233563005: Take the ScriptOrigin into account for CompileFunctionInContext (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 641
642 static bool EnsureCompiled(Handle<JSFunction> function, 642 static bool EnsureCompiled(Handle<JSFunction> function,
643 ClearExceptionFlag flag); 643 ClearExceptionFlag flag);
644 644
645 static void CompileForLiveEdit(Handle<Script> script); 645 static void CompileForLiveEdit(Handle<Script> script);
646 646
647 // Compile a String source within a context for eval. 647 // Compile a String source within a context for eval.
648 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( 648 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
649 Handle<String> source, Handle<SharedFunctionInfo> outer_info, 649 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
650 Handle<Context> context, LanguageMode language_mode, 650 Handle<Context> context, LanguageMode language_mode,
651 ParseRestriction restriction, int scope_position); 651 ParseRestriction restriction, int line_offset, int column_offset = 0,
652 Handle<Object> script_name = Handle<Object>(),
653 ScriptOriginOptions options = ScriptOriginOptions());
652 654
653 // Compile a String source within a context. 655 // Compile a String source within a context.
654 static Handle<SharedFunctionInfo> CompileScript( 656 static Handle<SharedFunctionInfo> CompileScript(
655 Handle<String> source, Handle<Object> script_name, int line_offset, 657 Handle<String> source, Handle<Object> script_name, int line_offset,
656 int column_offset, ScriptOriginOptions resource_options, 658 int column_offset, ScriptOriginOptions resource_options,
657 Handle<Object> source_map_url, Handle<Context> context, 659 Handle<Object> source_map_url, Handle<Context> context,
658 v8::Extension* extension, ScriptData** cached_data, 660 v8::Extension* extension, ScriptData** cached_data,
659 ScriptCompiler::CompileOptions compile_options, 661 ScriptCompiler::CompileOptions compile_options,
660 NativesFlag is_natives_code, bool is_module); 662 NativesFlag is_natives_code, bool is_module);
661 663
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 Zone zone_; 708 Zone zone_;
707 size_t info_zone_start_allocation_size_; 709 size_t info_zone_start_allocation_size_;
708 base::ElapsedTimer timer_; 710 base::ElapsedTimer timer_;
709 711
710 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 712 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
711 }; 713 };
712 714
713 } } // namespace v8::internal 715 } } // namespace v8::internal
714 716
715 #endif // V8_COMPILER_H_ 717 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698