OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 4417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4428 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4428 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
4429 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | 4429 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); |
4430 __ CallStub(&stub); | 4430 __ CallStub(&stub); |
4431 RecordSafepointWithRegistersAndDoubles( | 4431 RecordSafepointWithRegistersAndDoubles( |
4432 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 4432 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
4433 } | 4433 } |
4434 __ bind(¬_applicable); | 4434 __ bind(¬_applicable); |
4435 } | 4435 } |
4436 | 4436 |
4437 | 4437 |
| 4438 void LCodeGen::DoArrayShift(LArrayShift* instr) { |
| 4439 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4440 ASSERT(ToRegister(instr->object()).is(r0)); |
| 4441 ASSERT(ToRegister(instr->result()).is(r0)); |
| 4442 ArrayShiftStub stub(isolate(), instr->hydrogen()->kind()); |
| 4443 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 4444 } |
| 4445 |
| 4446 |
4438 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4447 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4439 Register object = ToRegister(instr->object()); | 4448 Register object = ToRegister(instr->object()); |
4440 Register temp = ToRegister(instr->temp()); | 4449 Register temp = ToRegister(instr->temp()); |
4441 Label no_memento_found; | 4450 Label no_memento_found; |
4442 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); | 4451 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); |
4443 DeoptimizeIf(eq, instr->environment()); | 4452 DeoptimizeIf(eq, instr->environment()); |
4444 __ bind(&no_memento_found); | 4453 __ bind(&no_memento_found); |
4445 } | 4454 } |
4446 | 4455 |
4447 | 4456 |
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5844 __ ldr(result, FieldMemOperand(scratch, | 5853 __ ldr(result, FieldMemOperand(scratch, |
5845 FixedArray::kHeaderSize - kPointerSize)); | 5854 FixedArray::kHeaderSize - kPointerSize)); |
5846 __ bind(deferred->exit()); | 5855 __ bind(deferred->exit()); |
5847 __ bind(&done); | 5856 __ bind(&done); |
5848 } | 5857 } |
5849 | 5858 |
5850 | 5859 |
5851 #undef __ | 5860 #undef __ |
5852 | 5861 |
5853 } } // namespace v8::internal | 5862 } } // namespace v8::internal |
OLD | NEW |