| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2151 kIsNotStringMask | kStringEncodingMask | kStringRepresentationMask; | 2151 kIsNotStringMask | kStringEncodingMask | kStringRepresentationMask; |
| 2152 static const int kFlatAsciiStringTag = ASCII_STRING_TYPE; | 2152 static const int kFlatAsciiStringTag = ASCII_STRING_TYPE; |
| 2153 And(scratch1, first, kFlatAsciiStringMask); | 2153 And(scratch1, first, kFlatAsciiStringMask); |
| 2154 And(scratch2, second, kFlatAsciiStringMask); | 2154 And(scratch2, second, kFlatAsciiStringMask); |
| 2155 Cmp(scratch1, kFlatAsciiStringTag); | 2155 Cmp(scratch1, kFlatAsciiStringTag); |
| 2156 Ccmp(scratch2, kFlatAsciiStringTag, NoFlag, eq); | 2156 Ccmp(scratch2, kFlatAsciiStringTag, NoFlag, eq); |
| 2157 B(ne, failure); | 2157 B(ne, failure); |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 | 2160 |
| 2161 void MacroAssembler::JumpIfNotUniqueName(Register type, |
| 2162 Label* not_unique_name) { |
| 2163 STATIC_ASSERT(((SYMBOL_TYPE - 1) & kIsInternalizedMask) == kInternalizedTag); |
| 2164 // if ((type < kInternalizedTag) || (type > SYMBOL_TYPE)) { |
| 2165 // goto not_unique_name; |
| 2166 // } |
| 2167 Cmp(type, kInternalizedTag); |
| 2168 Ccmp(type, SYMBOL_TYPE, NVFlag, ge); |
| 2169 B(gt, not_unique_name); |
| 2170 } |
| 2171 |
| 2172 |
| 2161 void MacroAssembler::GenerateNumberUnaryOperation(Token::Value op, | 2173 void MacroAssembler::GenerateNumberUnaryOperation(Token::Value op, |
| 2162 InvokeFlag flag) { | 2174 InvokeFlag flag) { |
| 2163 Runtime::FunctionId fid; | 2175 Runtime::FunctionId fid; |
| 2164 switch (op) { | 2176 switch (op) { |
| 2165 case Token::ADD: | 2177 case Token::ADD: |
| 2166 // A unary add on a number (or SMI) does nothing. | 2178 // A unary add on a number (or SMI) does nothing. |
| 2167 if (flag == JUMP_FUNCTION) { | 2179 if (flag == JUMP_FUNCTION) { |
| 2168 // Emulate a tail call. | 2180 // Emulate a tail call. |
| 2169 Ret(); | 2181 Ret(); |
| 2170 } | 2182 } |
| (...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4664 } | 4676 } |
| 4665 } | 4677 } |
| 4666 | 4678 |
| 4667 | 4679 |
| 4668 #undef __ | 4680 #undef __ |
| 4669 | 4681 |
| 4670 | 4682 |
| 4671 } } // namespace v8::internal | 4683 } } // namespace v8::internal |
| 4672 | 4684 |
| 4673 #endif // V8_TARGET_ARCH_A64 | 4685 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |