| 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 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 const AstRawString* raw_name() const { return raw_name_; } | 2459 const AstRawString* raw_name() const { return raw_name_; } |
| 2460 Scope* scope() const { return scope_; } | 2460 Scope* scope() const { return scope_; } |
| 2461 ZoneList<Statement*>* body() const { return body_; } | 2461 ZoneList<Statement*>* body() const { return body_; } |
| 2462 void set_function_token_position(int pos) { function_token_position_ = pos; } | 2462 void set_function_token_position(int pos) { function_token_position_ = pos; } |
| 2463 int function_token_position() const { return function_token_position_; } | 2463 int function_token_position() const { return function_token_position_; } |
| 2464 int start_position() const; | 2464 int start_position() const; |
| 2465 int end_position() const; | 2465 int end_position() const; |
| 2466 int SourceSize() const { return end_position() - start_position(); } | 2466 int SourceSize() const { return end_position() - start_position(); } |
| 2467 bool is_expression() const { return IsExpression::decode(bitfield_); } | 2467 bool is_expression() const { return IsExpression::decode(bitfield_); } |
| 2468 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } | 2468 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } |
| 2469 StrictMode strict_mode() const; | 2469 LanguageMode language_mode() const; |
| 2470 bool uses_super_property() const; | 2470 bool uses_super_property() const; |
| 2471 bool uses_super_constructor_call() const; | 2471 bool uses_super_constructor_call() const; |
| 2472 | 2472 |
| 2473 static bool NeedsHomeObject(Expression* literal) { | 2473 static bool NeedsHomeObject(Expression* literal) { |
| 2474 return literal != NULL && literal->IsFunctionLiteral() && | 2474 return literal != NULL && literal->IsFunctionLiteral() && |
| 2475 literal->AsFunctionLiteral()->uses_super_property(); | 2475 literal->AsFunctionLiteral()->uses_super_property(); |
| 2476 } | 2476 } |
| 2477 | 2477 |
| 2478 int materialized_literal_count() { return materialized_literal_count_; } | 2478 int materialized_literal_count() { return materialized_literal_count_; } |
| 2479 int expected_property_count() { return expected_property_count_; } | 2479 int expected_property_count() { return expected_property_count_; } |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 | 3548 |
| 3549 private: | 3549 private: |
| 3550 Zone* zone_; | 3550 Zone* zone_; |
| 3551 AstValueFactory* ast_value_factory_; | 3551 AstValueFactory* ast_value_factory_; |
| 3552 }; | 3552 }; |
| 3553 | 3553 |
| 3554 | 3554 |
| 3555 } } // namespace v8::internal | 3555 } } // namespace v8::internal |
| 3556 | 3556 |
| 3557 #endif // V8_AST_H_ | 3557 #endif // V8_AST_H_ |
| OLD | NEW |