V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
g
i
k
n
p
r
s
t
Functions
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
a
c
d
e
h
k
l
n
o
s
Typedefs
Enumerations
+
Files
File List
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
rewriter.h
1
// Copyright 2011 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_PARSING_REWRITER_H_
6
#define V8_PARSING_REWRITER_H_
7
8
namespace
v8
{
9
namespace
internal {
10
11
class
AstValueFactory;
12
class
Isolate;
13
class
ParseInfo;
14
class
Parser;
15
class
DeclarationScope;
16
class
Scope;
17
18
class
Rewriter
{
19
public
:
20
// Rewrite top-level code (ECMA 262 "programs") so as to conservatively
21
// include an assignment of the value of the last statement in the code to
22
// a compiler-generated temporary variable wherever needed.
23
//
24
// Assumes code has been parsed and scopes have been analyzed. Mutates the
25
// AST, so the AST should not continue to be used in the case of failure.
26
static
bool
Rewrite(
ParseInfo
* info);
27
};
28
29
30
}
// namespace internal
31
}
// namespace v8
32
33
#endif // V8_PARSING_REWRITER_H_
v8::internal::ParseInfo
Definition:
parse-info.h:39
v8::internal::Rewriter
Definition:
rewriter.h:18
v8
Definition:
libplatform.h:13
v8
src
parsing
rewriter.h
Generated on Tue Dec 25 2018 14:39:34 by
1.8.14