| 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 4386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4397 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4397 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4398 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | 4398 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); |
| 4399 __ CallStub(&stub); | 4399 __ CallStub(&stub); |
| 4400 RecordSafepointWithRegistersAndDoubles( | 4400 RecordSafepointWithRegistersAndDoubles( |
| 4401 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 4401 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
| 4402 } | 4402 } |
| 4403 __ bind(¬_applicable); | 4403 __ bind(¬_applicable); |
| 4404 } | 4404 } |
| 4405 | 4405 |
| 4406 | 4406 |
| 4407 void LCodeGen::DoArrayShift(LArrayShift* instr) { | |
| 4408 ASSERT(ToRegister(instr->context()).is(cp)); | |
| 4409 ASSERT(ToRegister(instr->object()).is(a0)); | |
| 4410 ASSERT(ToRegister(instr->result()).is(v0)); | |
| 4411 ArrayShiftStub stub(isolate(), instr->hydrogen()->kind()); | |
| 4412 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 4413 } | |
| 4414 | |
| 4415 | |
| 4416 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4407 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4417 Register object = ToRegister(instr->object()); | 4408 Register object = ToRegister(instr->object()); |
| 4418 Register temp = ToRegister(instr->temp()); | 4409 Register temp = ToRegister(instr->temp()); |
| 4419 Label no_memento_found; | 4410 Label no_memento_found; |
| 4420 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found, | 4411 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found, |
| 4421 ne, &no_memento_found); | 4412 ne, &no_memento_found); |
| 4422 DeoptimizeIf(al, instr->environment()); | 4413 DeoptimizeIf(al, instr->environment()); |
| 4423 __ bind(&no_memento_found); | 4414 __ bind(&no_memento_found); |
| 4424 } | 4415 } |
| 4425 | 4416 |
| (...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5876 __ lw(result, FieldMemOperand(scratch, | 5867 __ lw(result, FieldMemOperand(scratch, |
| 5877 FixedArray::kHeaderSize - kPointerSize)); | 5868 FixedArray::kHeaderSize - kPointerSize)); |
| 5878 __ bind(deferred->exit()); | 5869 __ bind(deferred->exit()); |
| 5879 __ bind(&done); | 5870 __ bind(&done); |
| 5880 } | 5871 } |
| 5881 | 5872 |
| 5882 | 5873 |
| 5883 #undef __ | 5874 #undef __ |
| 5884 | 5875 |
| 5885 } } // namespace v8::internal | 5876 } } // namespace v8::internal |
| OLD | NEW |