https://codereview.chromium.org/883823002/diff/120001/src/ast.h
File src/ast.h (right):
https://codereview.chromium.org/883823002/diff/120001/src/ast.h#newcode3424
src/ast.h:3424: (name == ast_value_factory_->this_string())
On 2015/02/06 17:31:19, wingo wrote:
Can we instead change from "bool is_this," to "Variable::Kind
variable_kind" ?
That way we avoid the load and comparison of this_string on what is a
relatively
hot path of the parser -- perhaps a silly concern -- and we preserve
readability
of callers.
Acknowledged.
https://codereview.chromium.org/883823002/diff/120001/src/parser.cc
File src/parser.cc (right):
https://codereview.chromium.org/883823002/diff/120001/src/parser.cc#newcode679
src/parser.cc:679: ast_value_factory()->this_string(),
On 2015/02/06 17:31:19, wingo wrote:
here probably we will have to pass in Variable::THIS
Acknowledged.
https://codereview.chromium.org/883823002/diff/120001/src/parser.cc#newcode735
src/parser.cc:735: ? factory->NewVariableProxy(name, interface, pos)
On 2015/02/06 17:31:19, wingo wrote:
instead of removing false, replace with Variable::NORMAL
Acknowledged.
https://codereview.chromium.org/883823002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.