| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
| 8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5152 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); | 5152 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); |
| 5153 } | 5153 } |
| 5154 } | 5154 } |
| 5155 | 5155 |
| 5156 | 5156 |
| 5157 void LCodeGen::DoCheckArrayBufferNotNeutered( | 5157 void LCodeGen::DoCheckArrayBufferNotNeutered( |
| 5158 LCheckArrayBufferNotNeutered* instr) { | 5158 LCheckArrayBufferNotNeutered* instr) { |
| 5159 Register view = ToRegister(instr->view()); | 5159 Register view = ToRegister(instr->view()); |
| 5160 Register scratch = scratch0(); | 5160 Register scratch = scratch0(); |
| 5161 | 5161 |
| 5162 Label has_no_buffer; | |
| 5163 __ ldr(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); | 5162 __ ldr(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); |
| 5164 __ JumpIfSmi(scratch, &has_no_buffer); | |
| 5165 __ ldr(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); | 5163 __ ldr(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); |
| 5166 __ tst(scratch, Operand(1 << JSArrayBuffer::WasNeutered::kShift)); | 5164 __ tst(scratch, Operand(1 << JSArrayBuffer::WasNeutered::kShift)); |
| 5167 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); | 5165 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); |
| 5168 | |
| 5169 __ bind(&has_no_buffer); | |
| 5170 } | 5166 } |
| 5171 | 5167 |
| 5172 | 5168 |
| 5173 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { | 5169 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
| 5174 Register input = ToRegister(instr->value()); | 5170 Register input = ToRegister(instr->value()); |
| 5175 Register scratch = scratch0(); | 5171 Register scratch = scratch0(); |
| 5176 | 5172 |
| 5177 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset)); | 5173 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset)); |
| 5178 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); | 5174 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
| 5179 | 5175 |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5943 __ Push(scope_info); | 5939 __ Push(scope_info); |
| 5944 __ push(ToRegister(instr->function())); | 5940 __ push(ToRegister(instr->function())); |
| 5945 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5941 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5946 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5942 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5947 } | 5943 } |
| 5948 | 5944 |
| 5949 | 5945 |
| 5950 #undef __ | 5946 #undef __ |
| 5951 | 5947 |
| 5952 } } // namespace v8::internal | 5948 } } // namespace v8::internal |
| OLD | NEW |