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 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1543 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1544 LOperand* object = UseRegister(instr->value()); | 1544 LOperand* object = UseRegister(instr->value()); |
1545 LValueOf* result = new(zone()) LValueOf(object); | 1545 LValueOf* result = new(zone()) LValueOf(object); |
1546 return DefineSameAsFirst(result); | 1546 return DefineSameAsFirst(result); |
1547 } | 1547 } |
1548 | 1548 |
1549 | 1549 |
1550 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1550 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1551 LOperand* object = UseFixed(instr->value(), rax); | 1551 LOperand* object = UseFixed(instr->value(), rax); |
1552 LDateField* result = new(zone()) LDateField(object, instr->index()); | 1552 LDateField* result = new(zone()) LDateField(object, instr->index()); |
1553 return MarkAsCall(DefineFixed(result, rax), instr); | 1553 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
1554 } | 1554 } |
1555 | 1555 |
1556 | 1556 |
1557 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1557 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1558 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1558 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
1559 LOperand* length = Use(instr->length()); | 1559 LOperand* length = Use(instr->length()); |
1560 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1560 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1561 } | 1561 } |
1562 | 1562 |
1563 | 1563 |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2311 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2312 LOperand* object = UseRegister(instr->object()); | 2312 LOperand* object = UseRegister(instr->object()); |
2313 LOperand* index = UseTempRegister(instr->index()); | 2313 LOperand* index = UseTempRegister(instr->index()); |
2314 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2314 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2315 } | 2315 } |
2316 | 2316 |
2317 | 2317 |
2318 } } // namespace v8::internal | 2318 } } // namespace v8::internal |
2319 | 2319 |
2320 #endif // V8_TARGET_ARCH_X64 | 2320 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |