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

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

Issue 1111003002: MIPS: Fix 'Add HArrayBufferNotNeutered instruction'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | no next file » | 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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 5216 matching lines...) Expand 10 before | Expand all | Expand 10 after
5227 } 5227 }
5228 } 5228 }
5229 5229
5230 5230
5231 void LCodeGen::DoCheckArrayBufferNotNeutered( 5231 void LCodeGen::DoCheckArrayBufferNotNeutered(
5232 LCheckArrayBufferNotNeutered* instr) { 5232 LCheckArrayBufferNotNeutered* instr) {
5233 Register view = ToRegister(instr->view()); 5233 Register view = ToRegister(instr->view());
5234 Register scratch = scratch0(); 5234 Register scratch = scratch0();
5235 5235
5236 Label has_no_buffer; 5236 Label has_no_buffer;
5237 __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); 5237 __ ld(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
5238 __ JumpIfSmi(scratch, &has_no_buffer); 5238 __ JumpIfSmi(scratch, &has_no_buffer);
5239 __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); 5239 __ ld(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
5240 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift); 5240 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift);
5241 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); 5241 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
5242 5242
5243 __ bind(&has_no_buffer); 5243 __ bind(&has_no_buffer);
5244 } 5244 }
5245 5245
5246 5246
5247 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { 5247 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) {
5248 Register input = ToRegister(instr->value()); 5248 Register input = ToRegister(instr->value());
5249 Register scratch = scratch0(); 5249 Register scratch = scratch0();
5250 5250
5251 __ GetObjectType(input, scratch, scratch); 5251 __ GetObjectType(input, scratch, scratch);
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
6058 __ li(at, scope_info); 6058 __ li(at, scope_info);
6059 __ Push(at, ToRegister(instr->function())); 6059 __ Push(at, ToRegister(instr->function()));
6060 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6060 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6061 RecordSafepoint(Safepoint::kNoLazyDeopt); 6061 RecordSafepoint(Safepoint::kNoLazyDeopt);
6062 } 6062 }
6063 6063
6064 6064
6065 #undef __ 6065 #undef __
6066 6066
6067 } } // namespace v8::internal 6067 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698