OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |