| 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 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 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 4960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4971 DeoptimizeIf(zero, instr, Deoptimizer::kSmi); | 4971 DeoptimizeIf(zero, instr, Deoptimizer::kSmi); |
| 4972 } | 4972 } |
| 4973 } | 4973 } |
| 4974 | 4974 |
| 4975 | 4975 |
| 4976 void LCodeGen::DoCheckArrayBufferNotNeutered( | 4976 void LCodeGen::DoCheckArrayBufferNotNeutered( |
| 4977 LCheckArrayBufferNotNeutered* instr) { | 4977 LCheckArrayBufferNotNeutered* instr) { |
| 4978 Register view = ToRegister(instr->view()); | 4978 Register view = ToRegister(instr->view()); |
| 4979 Register scratch = ToRegister(instr->scratch()); | 4979 Register scratch = ToRegister(instr->scratch()); |
| 4980 | 4980 |
| 4981 Label has_no_buffer; | |
| 4982 __ mov(scratch, FieldOperand(view, JSArrayBufferView::kBufferOffset)); | 4981 __ mov(scratch, FieldOperand(view, JSArrayBufferView::kBufferOffset)); |
| 4983 __ JumpIfSmi(scratch, &has_no_buffer); | |
| 4984 __ test_b(FieldOperand(scratch, JSArrayBuffer::kBitFieldOffset), | 4982 __ test_b(FieldOperand(scratch, JSArrayBuffer::kBitFieldOffset), |
| 4985 1 << JSArrayBuffer::WasNeutered::kShift); | 4983 1 << JSArrayBuffer::WasNeutered::kShift); |
| 4986 DeoptimizeIf(not_zero, instr, Deoptimizer::kOutOfBounds); | 4984 DeoptimizeIf(not_zero, instr, Deoptimizer::kOutOfBounds); |
| 4987 | |
| 4988 __ bind(&has_no_buffer); | |
| 4989 } | 4985 } |
| 4990 | 4986 |
| 4991 | 4987 |
| 4992 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { | 4988 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
| 4993 Register input = ToRegister(instr->value()); | 4989 Register input = ToRegister(instr->value()); |
| 4994 Register temp = ToRegister(instr->temp()); | 4990 Register temp = ToRegister(instr->temp()); |
| 4995 | 4991 |
| 4996 __ mov(temp, FieldOperand(input, HeapObject::kMapOffset)); | 4992 __ mov(temp, FieldOperand(input, HeapObject::kMapOffset)); |
| 4997 | 4993 |
| 4998 if (instr->hydrogen()->is_interval_check()) { | 4994 if (instr->hydrogen()->is_interval_check()) { |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5771 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5767 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5772 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5768 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5773 } | 5769 } |
| 5774 | 5770 |
| 5775 | 5771 |
| 5776 #undef __ | 5772 #undef __ |
| 5777 | 5773 |
| 5778 } } // namespace v8::internal | 5774 } } // namespace v8::internal |
| 5779 | 5775 |
| 5780 #endif // V8_TARGET_ARCH_IA32 | 5776 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |