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

Side by Side Diff: src/ast.h

Issue 1259183005: [es6] new.target should not be shadowable in a with scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after
2820 2820
2821 protected: 2821 protected:
2822 SuperCallReference(Zone* zone, VariableProxy* this_var, 2822 SuperCallReference(Zone* zone, VariableProxy* this_var,
2823 VariableProxy* new_target_var, 2823 VariableProxy* new_target_var,
2824 VariableProxy* this_function_var, int pos) 2824 VariableProxy* this_function_var, int pos)
2825 : Expression(zone, pos), 2825 : Expression(zone, pos),
2826 this_var_(this_var), 2826 this_var_(this_var),
2827 new_target_var_(new_target_var), 2827 new_target_var_(new_target_var),
2828 this_function_var_(this_function_var) { 2828 this_function_var_(this_function_var) {
2829 DCHECK(this_var->is_this()); 2829 DCHECK(this_var->is_this());
2830 DCHECK(new_target_var->raw_name()->IsOneByteEqualTo("new.target")); 2830 DCHECK(new_target_var->raw_name()->IsOneByteEqualTo(".new.target"));
2831 DCHECK(this_function_var->raw_name()->IsOneByteEqualTo(".this_function")); 2831 DCHECK(this_function_var->raw_name()->IsOneByteEqualTo(".this_function"));
2832 } 2832 }
2833 2833
2834 private: 2834 private:
2835 VariableProxy* this_var_; 2835 VariableProxy* this_var_;
2836 VariableProxy* new_target_var_; 2836 VariableProxy* new_target_var_;
2837 VariableProxy* this_function_var_; 2837 VariableProxy* this_function_var_;
2838 }; 2838 };
2839 2839
2840 2840
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
3625 3625
3626 private: 3626 private:
3627 Zone* zone_; 3627 Zone* zone_;
3628 AstValueFactory* ast_value_factory_; 3628 AstValueFactory* ast_value_factory_;
3629 }; 3629 };
3630 3630
3631 3631
3632 } } // namespace v8::internal 3632 } } // namespace v8::internal
3633 3633
3634 #endif // V8_AST_H_ 3634 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698