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 4441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4452 // Load the global or builtins object from the current context. | 4452 // Load the global or builtins object from the current context. |
4453 lw(scratch, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); | 4453 lw(scratch, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); |
4454 lw(scratch, FieldMemOperand(scratch, GlobalObject::kGlobalContextOffset)); | 4454 lw(scratch, FieldMemOperand(scratch, GlobalObject::kGlobalContextOffset)); |
4455 | 4455 |
4456 // Check that the function's map is the same as the expected cached map. | 4456 // Check that the function's map is the same as the expected cached map. |
4457 lw(scratch, | 4457 lw(scratch, |
4458 MemOperand(scratch, | 4458 MemOperand(scratch, |
4459 Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX))); | 4459 Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX))); |
4460 size_t offset = expected_kind * kPointerSize + | 4460 size_t offset = expected_kind * kPointerSize + |
4461 FixedArrayBase::kHeaderSize; | 4461 FixedArrayBase::kHeaderSize; |
4462 Branch(no_map_match, ne, map_in_out, Operand(scratch)); | 4462 lw(at, FieldMemOperand(scratch, offset)); |
| 4463 Branch(no_map_match, ne, map_in_out, Operand(at)); |
4463 | 4464 |
4464 // Use the transitioned cached map. | 4465 // Use the transitioned cached map. |
4465 offset = transitioned_kind * kPointerSize + | 4466 offset = transitioned_kind * kPointerSize + |
4466 FixedArrayBase::kHeaderSize; | 4467 FixedArrayBase::kHeaderSize; |
4467 lw(map_in_out, FieldMemOperand(scratch, offset)); | 4468 lw(map_in_out, FieldMemOperand(scratch, offset)); |
4468 } | 4469 } |
4469 | 4470 |
4470 | 4471 |
4471 void MacroAssembler::LoadInitialArrayMap( | 4472 void MacroAssembler::LoadInitialArrayMap( |
4472 Register function_in, Register scratch, | 4473 Register function_in, Register scratch, |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5445 opcode == BGTZL); | 5446 opcode == BGTZL); |
5446 opcode = (cond == eq) ? BEQ : BNE; | 5447 opcode = (cond == eq) ? BEQ : BNE; |
5447 instr = (instr & ~kOpcodeMask) | opcode; | 5448 instr = (instr & ~kOpcodeMask) | opcode; |
5448 masm_.emit(instr); | 5449 masm_.emit(instr); |
5449 } | 5450 } |
5450 | 5451 |
5451 | 5452 |
5452 } } // namespace v8::internal | 5453 } } // namespace v8::internal |
5453 | 5454 |
5454 #endif // V8_TARGET_ARCH_MIPS | 5455 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |