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

Unified Diff: src/compilation-cache.h

Issue 879553002: [V8] Added Script::is_debugger_script flag for embedders (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/compilation-cache.h
diff --git a/src/compilation-cache.h b/src/compilation-cache.h
index a7c84b7b5d1b3bc51104635bc1f834e3c980ad6b..cbd9924ebb414d2c99cbf1e59893dccca66d8b1e 100644
--- a/src/compilation-cache.h
+++ b/src/compilation-cache.h
@@ -72,10 +72,9 @@ class CompilationCacheScript : public CompilationSubCache {
public:
CompilationCacheScript(Isolate* isolate, int generations);
- Handle<SharedFunctionInfo> Lookup(Handle<String> source,
- Handle<Object> name,
- int line_offset,
- int column_offset,
+ Handle<SharedFunctionInfo> Lookup(Handle<String> source, Handle<Object> name,
+ int line_offset, int column_offset,
+ bool is_internal_script,
bool is_shared_cross_origin,
Handle<Context> context);
void Put(Handle<String> source,
@@ -83,10 +82,8 @@ class CompilationCacheScript : public CompilationSubCache {
Handle<SharedFunctionInfo> function_info);
private:
- bool HasOrigin(Handle<SharedFunctionInfo> function_info,
- Handle<Object> name,
- int line_offset,
- int column_offset,
+ bool HasOrigin(Handle<SharedFunctionInfo> function_info, Handle<Object> name,
+ int line_offset, int column_offset, bool is_internal_script,
bool is_shared_cross_origin);
DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheScript);
@@ -150,7 +147,8 @@ class CompilationCache {
// script for the given source string with the right origin.
MaybeHandle<SharedFunctionInfo> LookupScript(
Handle<String> source, Handle<Object> name, int line_offset,
- int column_offset, bool is_shared_cross_origin, Handle<Context> context);
+ int column_offset, bool is_internal_script, bool is_shared_cross_origin,
+ Handle<Context> context);
// Finds the shared function info for a source string for eval in a
// given context. Returns an empty handle if the cache doesn't
« src/api.cc ('K') | « src/bootstrapper.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698