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

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

Issue 2587973002: Revert of [crankshaft] Fix IsClassOfTest helper method (Closed)
Patch Set: Created 4 years 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/prettyprinter.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 #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/compile-time-value.h" 9 #include "src/ast/compile-time-value.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 10 matching lines...) Expand all
21 #include "src/type-info.h" 21 #include "src/type-info.h"
22 22
23 namespace v8 { 23 namespace v8 {
24 namespace internal { 24 namespace internal {
25 25
26 // ---------------------------------------------------------------------------- 26 // ----------------------------------------------------------------------------
27 // Implementation of other node functionality. 27 // Implementation of other node functionality.
28 28
29 #ifdef DEBUG 29 #ifdef DEBUG
30 30
31 void AstNode::Print() { Print(Isolate::Current()); }
32
33 void AstNode::Print(Isolate* isolate) { 31 void AstNode::Print(Isolate* isolate) {
34 AstPrinter::PrintOut(isolate, this); 32 AstPrinter::PrintOut(isolate, this);
35 } 33 }
36 34
37 35
38 #endif // DEBUG 36 #endif // DEBUG
39 37
40 #define RETURN_NODE(Node) \ 38 #define RETURN_NODE(Node) \
41 case k##Node: \ 39 case k##Node: \
42 return static_cast<Node*>(this); 40 return static_cast<Node*>(this);
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 // static 958 // static
961 bool Literal::Match(void* literal1, void* literal2) { 959 bool Literal::Match(void* literal1, void* literal2) {
962 const AstValue* x = static_cast<Literal*>(literal1)->raw_value(); 960 const AstValue* x = static_cast<Literal*>(literal1)->raw_value();
963 const AstValue* y = static_cast<Literal*>(literal2)->raw_value(); 961 const AstValue* y = static_cast<Literal*>(literal2)->raw_value();
964 return (x->IsString() && y->IsString() && x->AsString() == y->AsString()) || 962 return (x->IsString() && y->IsString() && x->AsString() == y->AsString()) ||
965 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); 963 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber());
966 } 964 }
967 965
968 } // namespace internal 966 } // namespace internal
969 } // namespace v8 967 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698