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

Side by Side Diff: src/register-allocator-inl.h

Issue 1207006: Rename NumberInfo to TypeInfo.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: changed project files Created 10 years, 9 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/register-allocator.cc ('k') | src/type-info.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void RegisterAllocator::Use(Register reg) { 97 void RegisterAllocator::Use(Register reg) {
98 registers_.Use(ToNumber(reg)); 98 registers_.Use(ToNumber(reg));
99 } 99 }
100 100
101 101
102 void RegisterAllocator::Unuse(Register reg) { 102 void RegisterAllocator::Unuse(Register reg) {
103 registers_.Unuse(ToNumber(reg)); 103 registers_.Unuse(ToNumber(reg));
104 } 104 }
105 105
106 106
107 NumberInfo Result::number_info() const { 107 TypeInfo Result::type_info() const {
108 ASSERT(is_valid()); 108 ASSERT(is_valid());
109 return NumberInfo::FromInt(NumberInfoField::decode(value_)); 109 return TypeInfo::FromInt(TypeInfoField::decode(value_));
110 } 110 }
111 111
112 112
113 void Result::set_number_info(NumberInfo info) { 113 void Result::set_type_info(TypeInfo info) {
114 ASSERT(is_valid()); 114 ASSERT(is_valid());
115 value_ &= ~NumberInfoField::mask(); 115 value_ &= ~TypeInfoField::mask();
116 value_ |= NumberInfoField::encode(info.ToInt()); 116 value_ |= TypeInfoField::encode(info.ToInt());
117 } 117 }
118 118
119 119
120 bool Result::is_number() const { 120 bool Result::is_number() const {
121 return number_info().IsNumber(); 121 return type_info().IsNumber();
122 } 122 }
123 123
124 124
125 bool Result::is_smi() const { 125 bool Result::is_smi() const {
126 return number_info().IsSmi(); 126 return type_info().IsSmi();
127 } 127 }
128 128
129 129
130 bool Result::is_integer32() const { 130 bool Result::is_integer32() const {
131 return number_info().IsInteger32(); 131 return type_info().IsInteger32();
132 } 132 }
133 133
134 134
135 bool Result::is_double() const { 135 bool Result::is_double() const {
136 return number_info().IsDouble(); 136 return type_info().IsDouble();
137 } 137 }
138 138
139 } } // namespace v8::internal 139 } } // namespace v8::internal
140 140
141 #endif // V8_REGISTER_ALLOCATOR_INL_H_ 141 #endif // V8_REGISTER_ALLOCATOR_INL_H_
OLDNEW
« no previous file with comments | « src/register-allocator.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698