OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2424 __ GetObjectType(a1, a3, a3); | 2424 __ GetObjectType(a1, a3, a3); |
2425 __ Branch(&miss, Ugreater_equal, a3, Operand(FIRST_NONSTRING_TYPE)); | 2425 __ Branch(&miss, Ugreater_equal, a3, Operand(FIRST_NONSTRING_TYPE)); |
2426 // Check that the maps starting from the prototype haven't changed. | 2426 // Check that the maps starting from the prototype haven't changed. |
2427 GenerateDirectLoadGlobalFunctionPrototype( | 2427 GenerateDirectLoadGlobalFunctionPrototype( |
2428 masm(), Context::STRING_FUNCTION_INDEX, a0, &miss); | 2428 masm(), Context::STRING_FUNCTION_INDEX, a0, &miss); |
2429 CheckPrototypes( | 2429 CheckPrototypes( |
2430 Handle<JSObject>(JSObject::cast(object->GetPrototype(isolate()))), | 2430 Handle<JSObject>(JSObject::cast(object->GetPrototype(isolate()))), |
2431 a0, holder, a3, a1, t0, name, &miss); | 2431 a0, holder, a3, a1, t0, name, &miss); |
2432 break; | 2432 break; |
2433 | 2433 |
| 2434 case SYMBOL_CHECK: |
| 2435 // Check that the object is a symbol. |
| 2436 __ GetObjectType(a1, a1, a3); |
| 2437 __ Branch(&miss, ne, a3, Operand(SYMBOL_TYPE)); |
| 2438 break; |
| 2439 |
2434 case NUMBER_CHECK: { | 2440 case NUMBER_CHECK: { |
2435 Label fast; | 2441 Label fast; |
2436 // Check that the object is a smi or a heap number. | 2442 // Check that the object is a smi or a heap number. |
2437 __ JumpIfSmi(a1, &fast); | 2443 __ JumpIfSmi(a1, &fast); |
2438 __ GetObjectType(a1, a0, a0); | 2444 __ GetObjectType(a1, a0, a0); |
2439 __ Branch(&miss, ne, a0, Operand(HEAP_NUMBER_TYPE)); | 2445 __ Branch(&miss, ne, a0, Operand(HEAP_NUMBER_TYPE)); |
2440 __ bind(&fast); | 2446 __ bind(&fast); |
2441 // Check that the maps starting from the prototype haven't changed. | 2447 // Check that the maps starting from the prototype haven't changed. |
2442 GenerateDirectLoadGlobalFunctionPrototype( | 2448 GenerateDirectLoadGlobalFunctionPrototype( |
2443 masm(), Context::NUMBER_FUNCTION_INDEX, a0, &miss); | 2449 masm(), Context::NUMBER_FUNCTION_INDEX, a0, &miss); |
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4111 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4117 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4112 } | 4118 } |
4113 } | 4119 } |
4114 | 4120 |
4115 | 4121 |
4116 #undef __ | 4122 #undef __ |
4117 | 4123 |
4118 } } // namespace v8::internal | 4124 } } // namespace v8::internal |
4119 | 4125 |
4120 #endif // V8_TARGET_ARCH_MIPS | 4126 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |