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 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 Scope* scope() const { return scope_; } | 2490 Scope* scope() const { return scope_; } |
2491 ZoneList<Statement*>* body() const { return body_; } | 2491 ZoneList<Statement*>* body() const { return body_; } |
2492 void set_function_token_position(int pos) { function_token_position_ = pos; } | 2492 void set_function_token_position(int pos) { function_token_position_ = pos; } |
2493 int function_token_position() const { return function_token_position_; } | 2493 int function_token_position() const { return function_token_position_; } |
2494 int start_position() const; | 2494 int start_position() const; |
2495 int end_position() const; | 2495 int end_position() const; |
2496 int SourceSize() const { return end_position() - start_position(); } | 2496 int SourceSize() const { return end_position() - start_position(); } |
2497 bool is_expression() const { return IsExpression::decode(bitfield_); } | 2497 bool is_expression() const { return IsExpression::decode(bitfield_); } |
2498 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } | 2498 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } |
2499 StrictMode strict_mode() const; | 2499 StrictMode strict_mode() const; |
| 2500 bool needs_super_binding() const; |
2500 | 2501 |
2501 int materialized_literal_count() { return materialized_literal_count_; } | 2502 int materialized_literal_count() { return materialized_literal_count_; } |
2502 int expected_property_count() { return expected_property_count_; } | 2503 int expected_property_count() { return expected_property_count_; } |
2503 int handler_count() { return handler_count_; } | 2504 int handler_count() { return handler_count_; } |
2504 int parameter_count() { return parameter_count_; } | 2505 int parameter_count() { return parameter_count_; } |
2505 | 2506 |
2506 bool AllowsLazyCompilation(); | 2507 bool AllowsLazyCompilation(); |
2507 bool AllowsLazyCompilationWithoutContext(); | 2508 bool AllowsLazyCompilationWithoutContext(); |
2508 | 2509 |
2509 void InitializeSharedInfo(Handle<Code> code); | 2510 void InitializeSharedInfo(Handle<Code> code); |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3704 private: | 3705 private: |
3705 Zone* zone_; | 3706 Zone* zone_; |
3706 Visitor visitor_; | 3707 Visitor visitor_; |
3707 AstValueFactory* ast_value_factory_; | 3708 AstValueFactory* ast_value_factory_; |
3708 }; | 3709 }; |
3709 | 3710 |
3710 | 3711 |
3711 } } // namespace v8::internal | 3712 } } // namespace v8::internal |
3712 | 3713 |
3713 #endif // V8_AST_H_ | 3714 #endif // V8_AST_H_ |
OLD | NEW |