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

Side by Side Diff: src/ast/ast.cc

Issue 1695393003: [es6] Implement for-of iterator finalization (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable iterator test for Ignition Created 4 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 | « src/ast/ast.h ('k') | src/ast/ast-value-factory.h » ('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 #include "src/ast/ast.h" 5 #include "src/ast/ast.h"
6 6
7 #include <cmath> // For isfinite. 7 #include <cmath> // For isfinite.
8 8
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 18 matching lines...) Expand all
29 void type::Accept(AstVisitor* v) { v->Visit##type(this); } 29 void type::Accept(AstVisitor* v) { v->Visit##type(this); }
30 AST_NODE_LIST(DECL_ACCEPT) 30 AST_NODE_LIST(DECL_ACCEPT)
31 #undef DECL_ACCEPT 31 #undef DECL_ACCEPT
32 32
33 33
34 // ---------------------------------------------------------------------------- 34 // ----------------------------------------------------------------------------
35 // Implementation of other node functionality. 35 // Implementation of other node functionality.
36 36
37 #ifdef DEBUG 37 #ifdef DEBUG
38 38
39 void AstNode::PrintAst() { PrintAst(Isolate::Current()); } 39 void AstNode::Print() { Print(Isolate::Current()); }
40 40
41 41
42 void AstNode::PrintAst(Isolate* isolate) { 42 void AstNode::Print(Isolate* isolate) {
43 AstPrinter::PrintOut(isolate, this); 43 AstPrinter::PrintOut(isolate, this);
44 } 44 }
45 45
46 46
47 void AstNode::PrettyPrint() { PrettyPrint(Isolate::Current()); } 47 void AstNode::PrettyPrint() { PrettyPrint(Isolate::Current()); }
48 48
49 49
50 void AstNode::PrettyPrint(Isolate* isolate) { 50 void AstNode::PrettyPrint(Isolate* isolate) {
51 PrettyPrinter::PrintOut(isolate, this); 51 PrettyPrinter::PrintOut(isolate, this);
52 } 52 }
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 bool Literal::Match(void* literal1, void* literal2) { 838 bool Literal::Match(void* literal1, void* literal2) {
839 const AstValue* x = static_cast<Literal*>(literal1)->raw_value(); 839 const AstValue* x = static_cast<Literal*>(literal1)->raw_value();
840 const AstValue* y = static_cast<Literal*>(literal2)->raw_value(); 840 const AstValue* y = static_cast<Literal*>(literal2)->raw_value();
841 return (x->IsString() && y->IsString() && x->AsString() == y->AsString()) || 841 return (x->IsString() && y->IsString() && x->AsString() == y->AsString()) ||
842 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); 842 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber());
843 } 843 }
844 844
845 845
846 } // namespace internal 846 } // namespace internal
847 } // namespace v8 847 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698