| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 #undef DEF_CASE | 188 #undef DEF_CASE |
| 189 default: | 189 default: |
| 190 if (!allow_unknown_keys) { | 190 if (!allow_unknown_keys) { |
| 191 UNREACHABLE(); | 191 UNREACHABLE(); |
| 192 } | 192 } |
| 193 return NULL; | 193 return NULL; |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 | 197 |
| 198 void CodeStub::PrintName(StringStream* stream) { |
| 199 stream->Add("%s", MajorName(MajorKey(), false)); |
| 200 } |
| 201 |
| 202 |
| 198 int ICCompareStub::MinorKey() { | 203 int ICCompareStub::MinorKey() { |
| 199 return OpField::encode(op_ - Token::EQ) | StateField::encode(state_); | 204 return OpField::encode(op_ - Token::EQ) | StateField::encode(state_); |
| 200 } | 205 } |
| 201 | 206 |
| 202 | 207 |
| 203 void ICCompareStub::Generate(MacroAssembler* masm) { | 208 void ICCompareStub::Generate(MacroAssembler* masm) { |
| 204 switch (state_) { | 209 switch (state_) { |
| 205 case CompareIC::UNINITIALIZED: | 210 case CompareIC::UNINITIALIZED: |
| 206 GenerateMiss(masm); | 211 GenerateMiss(masm); |
| 207 break; | 212 break; |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 409 } |
| 405 | 410 |
| 406 | 411 |
| 407 bool ToBooleanStub::Types::CanBeUndetectable() const { | 412 bool ToBooleanStub::Types::CanBeUndetectable() const { |
| 408 return Contains(ToBooleanStub::SPEC_OBJECT) | 413 return Contains(ToBooleanStub::SPEC_OBJECT) |
| 409 || Contains(ToBooleanStub::STRING); | 414 || Contains(ToBooleanStub::STRING); |
| 410 } | 415 } |
| 411 | 416 |
| 412 | 417 |
| 413 } } // namespace v8::internal | 418 } } // namespace v8::internal |
| OLD | NEW |