diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2019-03-15 18:35:06 +0530 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-03-28 16:36:18 -0400 |
commit | f579e1194046c50f2e6bb54348d48c8e7d1a53cf (patch) | |
tree | 9125787c758358365f74f9fd9673c14f57e67870 /deps/v8/test/cctest/cctest.h | |
parent | 2c73868b0471fbd4038f500d076df056cbf697fe (diff) | |
download | android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.tar.gz android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.tar.bz2 android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.zip |
deps: update V8 to 7.4.288.13
PR-URL: https://github.com/nodejs/node/pull/26685
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'deps/v8/test/cctest/cctest.h')
-rw-r--r-- | deps/v8/test/cctest/cctest.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/deps/v8/test/cctest/cctest.h b/deps/v8/test/cctest/cctest.h index 3c99721760..6e6b920dbd 100644 --- a/deps/v8/test/cctest/cctest.h +++ b/deps/v8/test/cctest/cctest.h @@ -56,6 +56,12 @@ const auto GetRegConfig = RegisterConfiguration::Default; class HandleScope; class Zone; +namespace compiler { + +class JSHeapBroker; + +} // namespace compiler + } // namespace internal } // namespace v8 @@ -487,7 +493,13 @@ static inline v8::Local<v8::Value> CompileRunWithOrigin( return CompileRunWithOrigin(v8_str(source), origin_url); } - +// Takes a JSFunction and runs it through the test version of the optimizing +// pipeline, allocating the temporary compilation artifacts in a given Zone. +// For possible {flags} values, look at OptimizedCompilationInfo::Flag. +// If passed a non-null pointer for {broker}, outputs the JSHeapBroker to it. +i::Handle<i::JSFunction> Optimize( + i::Handle<i::JSFunction> function, i::Zone* zone, i::Isolate* isolate, + uint32_t flags, i::compiler::JSHeapBroker** out_broker = nullptr); static inline void ExpectString(const char* code, const char* expected) { v8::Local<v8::Value> result = CompileRun(code); |