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

Side by Side Diff: src/ast.h

Issue 718473002: ES6: Add support for super in object literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix remaining code review issues Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | 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 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
2501
2502 static bool NeedsHomeObject(Expression* literal) {
2503 return literal != NULL && literal->IsFunctionLiteral() &&
2504 literal->AsFunctionLiteral()->needs_super_binding();
2505 }
2500 2506
2501 int materialized_literal_count() { return materialized_literal_count_; } 2507 int materialized_literal_count() { return materialized_literal_count_; }
2502 int expected_property_count() { return expected_property_count_; } 2508 int expected_property_count() { return expected_property_count_; }
2503 int handler_count() { return handler_count_; } 2509 int handler_count() { return handler_count_; }
2504 int parameter_count() { return parameter_count_; } 2510 int parameter_count() { return parameter_count_; }
2505 2511
2506 bool AllowsLazyCompilation(); 2512 bool AllowsLazyCompilation();
2507 bool AllowsLazyCompilationWithoutContext(); 2513 bool AllowsLazyCompilationWithoutContext();
2508 2514
2509 void InitializeSharedInfo(Handle<Code> code); 2515 void InitializeSharedInfo(Handle<Code> code);
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 private: 3710 private:
3705 Zone* zone_; 3711 Zone* zone_;
3706 Visitor visitor_; 3712 Visitor visitor_;
3707 AstValueFactory* ast_value_factory_; 3713 AstValueFactory* ast_value_factory_;
3708 }; 3714 };
3709 3715
3710 3716
3711 } } // namespace v8::internal 3717 } } // namespace v8::internal
3712 3718
3713 #endif // V8_AST_H_ 3719 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698