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

Side by Side Diff: src/code.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/checks.h ('k') | src/code-stubs.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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_CODE_H_ 5 #ifndef V8_CODE_H_
6 #define V8_CODE_H_ 6 #define V8_CODE_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 12 matching lines...) Expand all
23 : reg_(reg), immediate_(0) { } 23 : reg_(reg), immediate_(0) { }
24 explicit ParameterCount(int immediate) 24 explicit ParameterCount(int immediate)
25 : reg_(no_reg), immediate_(immediate) { } 25 : reg_(no_reg), immediate_(immediate) { }
26 explicit ParameterCount(Handle<JSFunction> f) 26 explicit ParameterCount(Handle<JSFunction> f)
27 : reg_(no_reg), immediate_(f->shared()->formal_parameter_count()) { } 27 : reg_(no_reg), immediate_(f->shared()->formal_parameter_count()) { }
28 28
29 bool is_reg() const { return !reg_.is(no_reg); } 29 bool is_reg() const { return !reg_.is(no_reg); }
30 bool is_immediate() const { return !is_reg(); } 30 bool is_immediate() const { return !is_reg(); }
31 31
32 Register reg() const { 32 Register reg() const {
33 ASSERT(is_reg()); 33 DCHECK(is_reg());
34 return reg_; 34 return reg_;
35 } 35 }
36 int immediate() const { 36 int immediate() const {
37 ASSERT(is_immediate()); 37 DCHECK(is_immediate());
38 return immediate_; 38 return immediate_;
39 } 39 }
40 40
41 private: 41 private:
42 const Register reg_; 42 const Register reg_;
43 const int immediate_; 43 const int immediate_;
44 44
45 DISALLOW_IMPLICIT_CONSTRUCTORS(ParameterCount); 45 DISALLOW_IMPLICIT_CONSTRUCTORS(ParameterCount);
46 }; 46 };
47 47
48 48
49 } } // namespace v8::internal 49 } } // namespace v8::internal
50 50
51 #endif // V8_CODE_H_ 51 #endif // V8_CODE_H_
OLDNEW
« no previous file with comments | « src/checks.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698