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

Side by Side Diff: src/compiler/js-graph.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-context-specialization.cc ('k') | src/compiler/js-operator.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_JS_GRAPH_H_ 5 #ifndef V8_COMPILER_JS_GRAPH_H_
6 #define V8_COMPILER_JS_GRAPH_H_ 6 #define V8_COMPILER_JS_GRAPH_H_
7 7
8 #include "src/compiler/common-node-cache.h" 8 #include "src/compiler/common-node-cache.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Creates a Int32Constant node, usually canonicalized. 61 // Creates a Int32Constant node, usually canonicalized.
62 Node* Int32Constant(int32_t value); 62 Node* Int32Constant(int32_t value);
63 63
64 // Creates a Float64Constant node, usually canonicalized. 64 // Creates a Float64Constant node, usually canonicalized.
65 Node* Float64Constant(double value); 65 Node* Float64Constant(double value);
66 66
67 // Creates an ExternalConstant node, usually canonicalized. 67 // Creates an ExternalConstant node, usually canonicalized.
68 Node* ExternalConstant(ExternalReference ref); 68 Node* ExternalConstant(ExternalReference ref);
69 69
70 Node* SmiConstant(int32_t immediate) { 70 Node* SmiConstant(int32_t immediate) {
71 ASSERT(Smi::IsValid(immediate)); 71 DCHECK(Smi::IsValid(immediate));
72 return Constant(immediate); 72 return Constant(immediate);
73 } 73 }
74 74
75 JSOperatorBuilder* javascript() { return &javascript_; } 75 JSOperatorBuilder* javascript() { return &javascript_; }
76 CommonOperatorBuilder* common() { return common_; } 76 CommonOperatorBuilder* common() { return common_; }
77 Graph* graph() { return graph_; } 77 Graph* graph() { return graph_; }
78 Zone* zone() { return graph()->zone(); } 78 Zone* zone() { return graph()->zone(); }
79 79
80 private: 80 private:
81 Graph* graph_; 81 Graph* graph_;
(...skipping 16 matching lines...) Expand all
98 Node* NumberConstant(double value); 98 Node* NumberConstant(double value);
99 Node* NewNode(Operator* op); 99 Node* NewNode(Operator* op);
100 100
101 Factory* factory() { return zone()->isolate()->factory(); } 101 Factory* factory() { return zone()->isolate()->factory(); }
102 }; 102 };
103 } // namespace compiler 103 } // namespace compiler
104 } // namespace internal 104 } // namespace internal
105 } // namespace v8 105 } // namespace v8
106 106
107 #endif 107 #endif
OLDNEW
« no previous file with comments | « src/compiler/js-context-specialization.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698