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

Side by Side Diff: src/compiler/linkage.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-typed-lowering.cc ('k') | src/compiler/linkage.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 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_LINKAGE_H_ 5 #ifndef V8_COMPILER_LINKAGE_H_
6 #define V8_COMPILER_LINKAGE_H_ 6 #define V8_COMPILER_LINKAGE_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // but not the context. 72 // but not the context.
73 int ParameterCount() const { return parameter_count_; } 73 int ParameterCount() const { return parameter_count_; }
74 74
75 int InputCount() const { return input_count_; } 75 int InputCount() const { return input_count_; }
76 76
77 bool CanLazilyDeoptimize() const { 77 bool CanLazilyDeoptimize() const {
78 return deoptimization_support_ == kCanDeoptimize; 78 return deoptimization_support_ == kCanDeoptimize;
79 } 79 }
80 80
81 LinkageLocation GetReturnLocation(int index) { 81 LinkageLocation GetReturnLocation(int index) {
82 ASSERT(index < return_count_); 82 DCHECK(index < return_count_);
83 return locations_[0 + index]; // return locations start at 0. 83 return locations_[0 + index]; // return locations start at 0.
84 } 84 }
85 85
86 LinkageLocation GetInputLocation(int index) { 86 LinkageLocation GetInputLocation(int index) {
87 ASSERT(index < input_count_ + 1); // input_count + 1 is the context. 87 DCHECK(index < input_count_ + 1); // input_count + 1 is the context.
88 return locations_[return_count_ + index]; // inputs start after returns. 88 return locations_[return_count_ + index]; // inputs start after returns.
89 } 89 }
90 90
91 // Operator properties describe how this call can be optimized, if at all. 91 // Operator properties describe how this call can be optimized, if at all.
92 Operator::Property properties() const { return properties_; } 92 Operator::Property properties() const { return properties_; }
93 93
94 // Get the callee-saved registers, if any, across this call. 94 // Get the callee-saved registers, if any, across this call.
95 RegList CalleeSavedRegisters() { return callee_saved_registers_; } 95 RegList CalleeSavedRegisters() { return callee_saved_registers_; }
96 96
97 const char* debug_name() const { return debug_name_; } 97 const char* debug_name() const { return debug_name_; }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 private: 180 private:
181 CompilationInfo* info_; 181 CompilationInfo* info_;
182 CallDescriptor* incoming_; 182 CallDescriptor* incoming_;
183 }; 183 };
184 } 184 }
185 } 185 }
186 } // namespace v8::internal::compiler 186 } // namespace v8::internal::compiler
187 187
188 #endif // V8_COMPILER_LINKAGE_H_ 188 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698