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

Side by Side Diff: src/ast.h

Issue 924123002: ES6 Classes: Remove tracking of super construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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.cc » ('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 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 ZoneList<Statement*>* body() const { return body_; } 2463 ZoneList<Statement*>* body() const { return body_; }
2464 void set_function_token_position(int pos) { function_token_position_ = pos; } 2464 void set_function_token_position(int pos) { function_token_position_ = pos; }
2465 int function_token_position() const { return function_token_position_; } 2465 int function_token_position() const { return function_token_position_; }
2466 int start_position() const; 2466 int start_position() const;
2467 int end_position() const; 2467 int end_position() const;
2468 int SourceSize() const { return end_position() - start_position(); } 2468 int SourceSize() const { return end_position() - start_position(); }
2469 bool is_expression() const { return IsExpression::decode(bitfield_); } 2469 bool is_expression() const { return IsExpression::decode(bitfield_); }
2470 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } 2470 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); }
2471 LanguageMode language_mode() const; 2471 LanguageMode language_mode() const;
2472 bool uses_super_property() const; 2472 bool uses_super_property() const;
2473 bool uses_super_constructor_call() const;
2474 2473
2475 static bool NeedsHomeObject(Expression* literal) { 2474 static bool NeedsHomeObject(Expression* literal) {
2476 return literal != NULL && literal->IsFunctionLiteral() && 2475 return literal != NULL && literal->IsFunctionLiteral() &&
2477 literal->AsFunctionLiteral()->uses_super_property(); 2476 literal->AsFunctionLiteral()->uses_super_property();
2478 } 2477 }
2479 2478
2480 int materialized_literal_count() { return materialized_literal_count_; } 2479 int materialized_literal_count() { return materialized_literal_count_; }
2481 int expected_property_count() { return expected_property_count_; } 2480 int expected_property_count() { return expected_property_count_; }
2482 int handler_count() { return handler_count_; } 2481 int handler_count() { return handler_count_; }
2483 int parameter_count() { return parameter_count_; } 2482 int parameter_count() { return parameter_count_; }
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
3538 3537
3539 private: 3538 private:
3540 Zone* zone_; 3539 Zone* zone_;
3541 AstValueFactory* ast_value_factory_; 3540 AstValueFactory* ast_value_factory_;
3542 }; 3541 };
3543 3542
3544 3543
3545 } } // namespace v8::internal 3544 } } // namespace v8::internal
3546 3545
3547 #endif // V8_AST_H_ 3546 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698