OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 9087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9098 Handle<Code> GetBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info) { | 9098 Handle<Code> GetBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info) { |
9099 GenericBinaryOpStub stub(key, type_info); | 9099 GenericBinaryOpStub stub(key, type_info); |
9100 return stub.GetCode(); | 9100 return stub.GetCode(); |
9101 } | 9101 } |
9102 | 9102 |
9103 | 9103 |
9104 int CompareStub::MinorKey() { | 9104 int CompareStub::MinorKey() { |
9105 // Encode the three parameters in a unique 16 bit value. To avoid duplicate | 9105 // Encode the three parameters in a unique 16 bit value. To avoid duplicate |
9106 // stubs the never NaN NaN condition is only taken into account if the | 9106 // stubs the never NaN NaN condition is only taken into account if the |
9107 // condition is equals. | 9107 // condition is equals. |
9108 ASSERT(static_cast<unsigned>(cc_) < (1 << 14)); | 9108 ASSERT(static_cast<unsigned>(cc_) < (1 << 13)); |
9109 return ConditionField::encode(static_cast<unsigned>(cc_)) | 9109 return ConditionField::encode(static_cast<unsigned>(cc_)) |
9110 | StrictField::encode(strict_) | 9110 | StrictField::encode(strict_) |
9111 | NeverNanNanField::encode(cc_ == equal ? never_nan_nan_ : false); | 9111 | NeverNanNanField::encode(cc_ == equal ? never_nan_nan_ : false) |
| 9112 | IncludeNumberCompareField::encode(include_number_compare_); |
9112 } | 9113 } |
9113 | 9114 |
9114 | 9115 |
9115 const char* CompareStub::GetName() { | 9116 const char* CompareStub::GetName() { |
9116 switch (cc_) { | 9117 switch (cc_) { |
9117 case less: return "CompareStub_LT"; | 9118 case less: return "CompareStub_LT"; |
9118 case greater: return "CompareStub_GT"; | 9119 case greater: return "CompareStub_GT"; |
9119 case less_equal: return "CompareStub_LE"; | 9120 case less_equal: return "CompareStub_LE"; |
9120 case greater_equal: return "CompareStub_GE"; | 9121 case greater_equal: return "CompareStub_GE"; |
9121 case not_equal: { | 9122 case not_equal: { |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9987 // Call the function from C++. | 9988 // Call the function from C++. |
9988 return FUNCTION_CAST<ModuloFunction>(buffer); | 9989 return FUNCTION_CAST<ModuloFunction>(buffer); |
9989 } | 9990 } |
9990 | 9991 |
9991 #endif | 9992 #endif |
9992 | 9993 |
9993 | 9994 |
9994 #undef __ | 9995 #undef __ |
9995 | 9996 |
9996 } } // namespace v8::internal | 9997 } } // namespace v8::internal |
OLD | NEW |