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

Side by Side Diff: src/arm/lithium-codegen-arm.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/api.cc ('k') | src/arm64/lithium-codegen-arm64.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 #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
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
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
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698