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 3463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3474 CompareMapMode mode) { | 3474 CompareMapMode mode) { |
3475 lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); | 3475 lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
3476 Operand right = Operand(map); | 3476 Operand right = Operand(map); |
3477 if (mode == ALLOW_ELEMENT_TRANSITION_MAPS) { | 3477 if (mode == ALLOW_ELEMENT_TRANSITION_MAPS) { |
3478 ElementsKind kind = map->elements_kind(); | 3478 ElementsKind kind = map->elements_kind(); |
3479 if (IsFastElementsKind(kind)) { | 3479 if (IsFastElementsKind(kind)) { |
3480 bool packed = IsFastPackedElementsKind(kind); | 3480 bool packed = IsFastPackedElementsKind(kind); |
3481 Map* current_map = *map; | 3481 Map* current_map = *map; |
3482 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) { | 3482 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) { |
3483 kind = GetNextMoreGeneralFastElementsKind(kind, packed); | 3483 kind = GetNextMoreGeneralFastElementsKind(kind, packed); |
3484 current_map = current_map->LookupElementsTransitionMap(kind, NULL); | 3484 current_map = current_map->LookupElementsTransitionMap(kind); |
3485 if (!current_map) break; | 3485 if (!current_map) break; |
3486 Branch(early_success, eq, scratch, right); | 3486 Branch(early_success, eq, scratch, right); |
3487 right = Operand(Handle<Map>(current_map)); | 3487 right = Operand(Handle<Map>(current_map)); |
3488 } | 3488 } |
3489 } | 3489 } |
3490 } | 3490 } |
3491 | 3491 |
3492 Branch(branch_to, cond, scratch, right); | 3492 Branch(branch_to, cond, scratch, right); |
3493 } | 3493 } |
3494 | 3494 |
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5435 opcode == BGTZL); | 5435 opcode == BGTZL); |
5436 opcode = (cond == eq) ? BEQ : BNE; | 5436 opcode = (cond == eq) ? BEQ : BNE; |
5437 instr = (instr & ~kOpcodeMask) | opcode; | 5437 instr = (instr & ~kOpcodeMask) | opcode; |
5438 masm_.emit(instr); | 5438 masm_.emit(instr); |
5439 } | 5439 } |
5440 | 5440 |
5441 | 5441 |
5442 } } // namespace v8::internal | 5442 } } // namespace v8::internal |
5443 | 5443 |
5444 #endif // V8_TARGET_ARCH_MIPS | 5444 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |