| 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 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4530 // smi | 4530 // smi |
| 4531 __ bind(&is_smi); | 4531 __ bind(&is_smi); |
| 4532 __ SmiToInteger32(input_reg, input_reg); | 4532 __ SmiToInteger32(input_reg, input_reg); |
| 4533 __ ClampUint8(input_reg); | 4533 __ ClampUint8(input_reg); |
| 4534 | 4534 |
| 4535 __ bind(&done); | 4535 __ bind(&done); |
| 4536 } | 4536 } |
| 4537 | 4537 |
| 4538 | 4538 |
| 4539 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { | 4539 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
| 4540 ASSERT(instr->temp()->Equals(instr->result())); |
| 4540 Register reg = ToRegister(instr->temp()); | 4541 Register reg = ToRegister(instr->temp()); |
| 4541 | 4542 |
| 4542 Handle<JSObject> holder = instr->holder(); | 4543 Handle<JSObject> holder = instr->holder(); |
| 4543 Handle<JSObject> current_prototype = instr->prototype(); | 4544 Handle<JSObject> current_prototype = instr->prototype(); |
| 4544 | 4545 |
| 4545 // Load prototype object. | 4546 // Load prototype object. |
| 4546 __ LoadHeapObject(reg, current_prototype); | 4547 __ LoadHeapObject(reg, current_prototype); |
| 4547 | 4548 |
| 4548 // Check prototype maps up to the holder. | 4549 // Check prototype maps up to the holder. |
| 4549 while (!current_prototype.is_identical_to(holder)) { | 4550 while (!current_prototype.is_identical_to(holder)) { |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5311 FixedArray::kHeaderSize - kPointerSize)); | 5312 FixedArray::kHeaderSize - kPointerSize)); |
| 5312 __ bind(&done); | 5313 __ bind(&done); |
| 5313 } | 5314 } |
| 5314 | 5315 |
| 5315 | 5316 |
| 5316 #undef __ | 5317 #undef __ |
| 5317 | 5318 |
| 5318 } } // namespace v8::internal | 5319 } } // namespace v8::internal |
| 5319 | 5320 |
| 5320 #endif // V8_TARGET_ARCH_X64 | 5321 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |