Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 1109353003: Unify internal and external typed arrays a bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698