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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h

Issue 2819733002: Implement ModuleScript::RunScript() (Closed)
Patch Set: Update comments Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static v8::MaybeLocal<v8::Value> CallFunction(v8::Local<v8::Function>, 109 static v8::MaybeLocal<v8::Value> CallFunction(v8::Local<v8::Function>,
110 ExecutionContext*, 110 ExecutionContext*,
111 v8::Local<v8::Value> receiver, 111 v8::Local<v8::Value> receiver,
112 int argc, 112 int argc,
113 v8::Local<v8::Value> info[], 113 v8::Local<v8::Value> info[],
114 v8::Isolate*); 114 v8::Isolate*);
115 static v8::MaybeLocal<v8::Value> EvaluateModule(v8::Local<v8::Module>, 115 static v8::MaybeLocal<v8::Value> EvaluateModule(v8::Local<v8::Module>,
116 v8::Local<v8::Context>, 116 v8::Local<v8::Context>,
117 v8::Isolate*); 117 v8::Isolate*);
118 118
119 // Only to be used from ScriptModule::ReportException().
120 static void ReportExceptionForModule(v8::Isolate*,
121 v8::Local<v8::Value> exception,
122 const String& file_name);
123
119 static uint32_t TagForParserCache(CachedMetadataHandler*); 124 static uint32_t TagForParserCache(CachedMetadataHandler*);
120 static uint32_t TagForCodeCache(CachedMetadataHandler*); 125 static uint32_t TagForCodeCache(CachedMetadataHandler*);
121 static void SetCacheTimeStamp(CachedMetadataHandler*); 126 static void SetCacheTimeStamp(CachedMetadataHandler*);
122 127
123 // Utilities for calling functions added to the V8 extras binding object. 128 // Utilities for calling functions added to the V8 extras binding object.
124 129
125 template <size_t N> 130 template <size_t N>
126 static v8::MaybeLocal<v8::Value> CallExtra(ScriptState* script_state, 131 static v8::MaybeLocal<v8::Value> CallExtra(ScriptState* script_state,
127 const char* name, 132 const char* name,
128 v8::Local<v8::Value> (&args)[N]) { 133 v8::Local<v8::Value> (&args)[N]) {
(...skipping 16 matching lines...) Expand all
145 private: 150 private:
146 static v8::MaybeLocal<v8::Value> CallExtraHelper(ScriptState*, 151 static v8::MaybeLocal<v8::Value> CallExtraHelper(ScriptState*,
147 const char* name, 152 const char* name,
148 size_t num_args, 153 size_t num_args,
149 v8::Local<v8::Value>* args); 154 v8::Local<v8::Value>* args);
150 }; 155 };
151 156
152 } // namespace blink 157 } // namespace blink
153 158
154 #endif // V8ScriptRunner_h 159 #endif // V8ScriptRunner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698