OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4250 RecordSafepointWithRegisters( | 4250 RecordSafepointWithRegisters( |
4251 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4251 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
4252 } | 4252 } |
4253 __ bind(¬_applicable); | 4253 __ bind(¬_applicable); |
4254 } | 4254 } |
4255 | 4255 |
4256 | 4256 |
4257 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4257 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4258 Register object = ToRegister(instr->object()); | 4258 Register object = ToRegister(instr->object()); |
4259 Register temp = ToRegister(instr->temp()); | 4259 Register temp = ToRegister(instr->temp()); |
4260 __ TestJSArrayForAllocationMemento(object, temp); | 4260 Label no_memento_found; |
| 4261 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); |
4261 DeoptimizeIf(equal, instr->environment()); | 4262 DeoptimizeIf(equal, instr->environment()); |
| 4263 __ bind(&no_memento_found); |
4262 } | 4264 } |
4263 | 4265 |
4264 | 4266 |
4265 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4267 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4266 EmitPushTaggedOperand(instr->left()); | 4268 EmitPushTaggedOperand(instr->left()); |
4267 EmitPushTaggedOperand(instr->right()); | 4269 EmitPushTaggedOperand(instr->right()); |
4268 StringAddStub stub(instr->hydrogen()->flags()); | 4270 StringAddStub stub(instr->hydrogen()->flags()); |
4269 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4271 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4270 } | 4272 } |
4271 | 4273 |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5452 FixedArray::kHeaderSize - kPointerSize)); | 5454 FixedArray::kHeaderSize - kPointerSize)); |
5453 __ bind(&done); | 5455 __ bind(&done); |
5454 } | 5456 } |
5455 | 5457 |
5456 | 5458 |
5457 #undef __ | 5459 #undef __ |
5458 | 5460 |
5459 } } // namespace v8::internal | 5461 } } // namespace v8::internal |
5460 | 5462 |
5461 #endif // V8_TARGET_ARCH_X64 | 5463 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |