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

Side by Side Diff: src/compiler.h

Issue 952893006: Take the ScriptOrigin into account for CompileFunctionInContext (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 794
795 static bool EnsureCompiled(Handle<JSFunction> function, 795 static bool EnsureCompiled(Handle<JSFunction> function,
796 ClearExceptionFlag flag); 796 ClearExceptionFlag flag);
797 797
798 static void CompileForLiveEdit(Handle<Script> script); 798 static void CompileForLiveEdit(Handle<Script> script);
799 799
800 // Compile a String source within a context for eval. 800 // Compile a String source within a context for eval.
801 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( 801 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
802 Handle<String> source, Handle<SharedFunctionInfo> outer_info, 802 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
803 Handle<Context> context, LanguageMode language_mode, 803 Handle<Context> context, LanguageMode language_mode,
804 ParseRestriction restriction, int scope_position); 804 ParseRestriction restriction, int line_offset, int column_offset = 0,
805 Handle<Object> script_name = Handle<Object>(),
806 bool is_embedder_debug_script = false,
807 bool is_shared_cross_origin = false);
805 808
806 // Compile a String source within a context. 809 // Compile a String source within a context.
807 static Handle<SharedFunctionInfo> CompileScript( 810 static Handle<SharedFunctionInfo> CompileScript(
808 Handle<String> source, Handle<Object> script_name, int line_offset, 811 Handle<String> source, Handle<Object> script_name, int line_offset,
809 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, 812 int column_offset, bool is_debugger_script, bool is_shared_cross_origin,
810 Handle<Context> context, v8::Extension* extension, 813 Handle<Context> context, v8::Extension* extension,
811 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, 814 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options,
812 NativesFlag is_natives_code, bool is_module); 815 NativesFlag is_natives_code, bool is_module);
813 816
814 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, 817 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 Zone zone_; 861 Zone zone_;
859 size_t info_zone_start_allocation_size_; 862 size_t info_zone_start_allocation_size_;
860 base::ElapsedTimer timer_; 863 base::ElapsedTimer timer_;
861 864
862 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 865 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
863 }; 866 };
864 867
865 } } // namespace v8::internal 868 } } // namespace v8::internal
866 869
867 #endif // V8_COMPILER_H_ 870 #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