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

Side by Side Diff: src/macro-assembler.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/lookup.cc ('k') | src/mark-compact.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 #ifndef V8_MACRO_ASSEMBLER_H_ 5 #ifndef V8_MACRO_ASSEMBLER_H_
6 #define V8_MACRO_ASSEMBLER_H_ 6 #define V8_MACRO_ASSEMBLER_H_
7 7
8 8
9 // Helper types to make boolean flag easier to read at call-site. 9 // Helper types to make boolean flag easier to read at call-site.
10 enum InvokeFlag { 10 enum InvokeFlag {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 masm_->set_has_frame(old_has_frame_); 108 masm_->set_has_frame(old_has_frame_);
109 } 109 }
110 110
111 // Normally we generate the leave-frame code when this object goes 111 // Normally we generate the leave-frame code when this object goes
112 // out of scope. Sometimes we may need to generate the code somewhere else 112 // out of scope. Sometimes we may need to generate the code somewhere else
113 // in addition. Calling this will achieve that, but the object stays in 113 // in addition. Calling this will achieve that, but the object stays in
114 // scope, the MacroAssembler is still marked as being in a frame scope, and 114 // scope, the MacroAssembler is still marked as being in a frame scope, and
115 // the code will be generated again when it goes out of scope. 115 // the code will be generated again when it goes out of scope.
116 void GenerateLeaveFrame() { 116 void GenerateLeaveFrame() {
117 ASSERT(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); 117 DCHECK(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE);
118 masm_->LeaveFrame(type_); 118 masm_->LeaveFrame(type_);
119 } 119 }
120 120
121 private: 121 private:
122 MacroAssembler* masm_; 122 MacroAssembler* masm_;
123 StackFrame::Type type_; 123 StackFrame::Type type_;
124 bool old_has_frame_; 124 bool old_has_frame_;
125 }; 125 };
126 126
127 127
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 isolate); 196 isolate);
197 } 197 }
198 return ExternalReference::new_space_allocation_limit_address(isolate); 198 return ExternalReference::new_space_allocation_limit_address(isolate);
199 } 199 }
200 }; 200 };
201 201
202 202
203 } } // namespace v8::internal 203 } } // namespace v8::internal
204 204
205 #endif // V8_MACRO_ASSEMBLER_H_ 205 #endif // V8_MACRO_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698