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_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
7 | 7 |
8 #include "src/ast/ast-types.h" | 8 #include "src/ast/ast-types.h" |
9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
(...skipping 2581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2592 } | 2592 } |
2593 LanguageMode language_mode() const; | 2593 LanguageMode language_mode() const; |
2594 | 2594 |
2595 static bool NeedsHomeObject(Expression* expr); | 2595 static bool NeedsHomeObject(Expression* expr); |
2596 | 2596 |
2597 int materialized_literal_count() { return materialized_literal_count_; } | 2597 int materialized_literal_count() { return materialized_literal_count_; } |
2598 int expected_property_count() { return expected_property_count_; } | 2598 int expected_property_count() { return expected_property_count_; } |
2599 int parameter_count() { return parameter_count_; } | 2599 int parameter_count() { return parameter_count_; } |
2600 | 2600 |
2601 bool AllowsLazyCompilation(); | 2601 bool AllowsLazyCompilation(); |
2602 bool AllowsLazyCompilationWithoutContext(); | |
2603 | 2602 |
2604 Handle<String> debug_name() const { | 2603 Handle<String> debug_name() const { |
2605 if (raw_name_ != NULL && !raw_name_->IsEmpty()) { | 2604 if (raw_name_ != NULL && !raw_name_->IsEmpty()) { |
2606 return raw_name_->string(); | 2605 return raw_name_->string(); |
2607 } | 2606 } |
2608 return inferred_name(); | 2607 return inferred_name(); |
2609 } | 2608 } |
2610 | 2609 |
2611 Handle<String> inferred_name() const { | 2610 Handle<String> inferred_name() const { |
2612 if (!inferred_name_.is_null()) { | 2611 if (!inferred_name_.is_null()) { |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3601 : NULL; \ | 3600 : NULL; \ |
3602 } | 3601 } |
3603 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3602 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
3604 #undef DECLARE_NODE_FUNCTIONS | 3603 #undef DECLARE_NODE_FUNCTIONS |
3605 | 3604 |
3606 | 3605 |
3607 } // namespace internal | 3606 } // namespace internal |
3608 } // namespace v8 | 3607 } // namespace v8 |
3609 | 3608 |
3610 #endif // V8_AST_AST_H_ | 3609 #endif // V8_AST_AST_H_ |
OLD | NEW |