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 5694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5705 __ sll(scratch, candidate, kPointerSizeLog2); | 5705 __ sll(scratch, candidate, kPointerSizeLog2); |
5706 __ Addu(scratch, scratch, first_symbol_table_element); | 5706 __ Addu(scratch, scratch, first_symbol_table_element); |
5707 __ lw(candidate, MemOperand(scratch)); | 5707 __ lw(candidate, MemOperand(scratch)); |
5708 | 5708 |
5709 // If entry is undefined no string with this hash can be found. | 5709 // If entry is undefined no string with this hash can be found. |
5710 Label is_string; | 5710 Label is_string; |
5711 __ GetObjectType(candidate, scratch, scratch); | 5711 __ GetObjectType(candidate, scratch, scratch); |
5712 __ Branch(&is_string, ne, scratch, Operand(ODDBALL_TYPE)); | 5712 __ Branch(&is_string, ne, scratch, Operand(ODDBALL_TYPE)); |
5713 | 5713 |
5714 __ Branch(not_found, eq, undefined, Operand(candidate)); | 5714 __ Branch(not_found, eq, undefined, Operand(candidate)); |
5715 // Must be the hole value (deleted entry). | 5715 // Must be the hole (deleted entry). |
5716 if (FLAG_debug_code) { | 5716 if (FLAG_debug_code) { |
5717 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); | 5717 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
5718 __ Assert(eq, "oddball in symbol table is not undefined or the hole value"
, | 5718 __ Assert(eq, "oddball in symbol table is not undefined or the hole", |
5719 scratch, Operand(candidate)); | 5719 scratch, Operand(candidate)); |
5720 } | 5720 } |
5721 __ jmp(&next_probe[i]); | 5721 __ jmp(&next_probe[i]); |
5722 | 5722 |
5723 __ bind(&is_string); | 5723 __ bind(&is_string); |
5724 | 5724 |
5725 // Check that the candidate is a non-external ASCII string. The instance | 5725 // Check that the candidate is a non-external ASCII string. The instance |
5726 // type is still in the scratch register from the CompareObjectType | 5726 // type is still in the scratch register from the CompareObjectType |
5727 // operation. | 5727 // operation. |
5728 __ JumpIfInstanceTypeIsNotSequentialAscii(scratch, scratch, &next_probe[i]); | 5728 __ JumpIfInstanceTypeIsNotSequentialAscii(scratch, scratch, &next_probe[i]); |
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7399 | 7399 |
7400 // Fall through when we need to inform the incremental marker. | 7400 // Fall through when we need to inform the incremental marker. |
7401 } | 7401 } |
7402 | 7402 |
7403 | 7403 |
7404 #undef __ | 7404 #undef __ |
7405 | 7405 |
7406 } } // namespace v8::internal | 7406 } } // namespace v8::internal |
7407 | 7407 |
7408 #endif // V8_TARGET_ARCH_MIPS | 7408 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |