OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4214 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 4214 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
4215 } | 4215 } |
4216 __ bind(¬_applicable); | 4216 __ bind(¬_applicable); |
4217 } | 4217 } |
4218 | 4218 |
4219 | 4219 |
4220 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4220 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4221 Register object = ToRegister(instr->object()); | 4221 Register object = ToRegister(instr->object()); |
4222 Register temp = ToRegister(instr->temp()); | 4222 Register temp = ToRegister(instr->temp()); |
4223 Label no_memento_found; | 4223 Label no_memento_found; |
4224 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found, | 4224 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); |
4225 ne, &no_memento_found); | |
4226 DeoptimizeIf(al, instr); | 4225 DeoptimizeIf(al, instr); |
4227 __ bind(&no_memento_found); | 4226 __ bind(&no_memento_found); |
4228 } | 4227 } |
4229 | 4228 |
4230 | 4229 |
4231 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4230 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4232 DCHECK(ToRegister(instr->context()).is(cp)); | 4231 DCHECK(ToRegister(instr->context()).is(cp)); |
4233 DCHECK(ToRegister(instr->left()).is(a1)); | 4232 DCHECK(ToRegister(instr->left()).is(a1)); |
4234 DCHECK(ToRegister(instr->right()).is(a0)); | 4233 DCHECK(ToRegister(instr->right()).is(a0)); |
4235 StringAddStub stub(isolate(), | 4234 StringAddStub stub(isolate(), |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5555 __ lw(result, FieldMemOperand(scratch, | 5554 __ lw(result, FieldMemOperand(scratch, |
5556 FixedArray::kHeaderSize - kPointerSize)); | 5555 FixedArray::kHeaderSize - kPointerSize)); |
5557 __ bind(deferred->exit()); | 5556 __ bind(deferred->exit()); |
5558 __ bind(&done); | 5557 __ bind(&done); |
5559 } | 5558 } |
5560 | 5559 |
5561 #undef __ | 5560 #undef __ |
5562 | 5561 |
5563 } // namespace internal | 5562 } // namespace internal |
5564 } // namespace v8 | 5563 } // namespace v8 |
OLD | NEW |