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

Side by Side Diff: src/variables.cc

Issue 506050: - Undo unfortunate renaming of StaticType. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/variables.h ('k') | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 #ifdef DEBUG 80 #ifdef DEBUG
81 void UseCount::Print() { 81 void UseCount::Print() {
82 // PrintF("r = %d, w = %d", nreads_, nwrites_); 82 // PrintF("r = %d, w = %d", nreads_, nwrites_);
83 PrintF("%du = %dr + %dw", nuses(), nreads(), nwrites()); 83 PrintF("%du = %dr + %dw", nuses(), nreads(), nwrites());
84 } 84 }
85 #endif 85 #endif
86 86
87 87
88 // ---------------------------------------------------------------------------- 88 // ----------------------------------------------------------------------------
89 // Implementation SmiAnalysis. 89 // Implementation StaticType.
90 90
91 91
92 const char* SmiAnalysis::Type2String(SmiAnalysis* type) { 92 const char* StaticType::Type2String(StaticType* type) {
93 switch (type->kind_) { 93 switch (type->kind_) {
94 case UNKNOWN: 94 case UNKNOWN:
95 return "UNKNOWN"; 95 return "UNKNOWN";
96 case LIKELY_SMI: 96 case LIKELY_SMI:
97 return "LIKELY_SMI"; 97 return "LIKELY_SMI";
98 default: 98 default:
99 UNREACHABLE(); 99 UNREACHABLE();
100 } 100 }
101 return "UNREACHABLE"; 101 return "UNREACHABLE";
102 } 102 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 156
157 bool Variable::is_global() const { 157 bool Variable::is_global() const {
158 // Temporaries are never global, they must always be allocated in the 158 // Temporaries are never global, they must always be allocated in the
159 // activation frame. 159 // activation frame.
160 return mode_ != TEMPORARY && scope_ != NULL && scope_->is_global_scope(); 160 return mode_ != TEMPORARY && scope_ != NULL && scope_->is_global_scope();
161 } 161 }
162 162
163 } } // namespace v8::internal 163 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698