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

Side by Side Diff: src/mips/lithium-codegen-mips.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 | « no previous file | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5160 matching lines...) Expand 10 before | Expand all | Expand 10 after
5171 void LCodeGen::DoCheckArrayBufferNotNeutered( 5171 void LCodeGen::DoCheckArrayBufferNotNeutered(
5172 LCheckArrayBufferNotNeutered* instr) { 5172 LCheckArrayBufferNotNeutered* instr) {
5173 Register view = ToRegister(instr->view()); 5173 Register view = ToRegister(instr->view());
5174 Register scratch = scratch0(); 5174 Register scratch = scratch0();
5175 5175
5176 Label has_no_buffer; 5176 Label has_no_buffer;
5177 __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); 5177 __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
5178 __ JumpIfSmi(scratch, &has_no_buffer); 5178 __ JumpIfSmi(scratch, &has_no_buffer);
5179 __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); 5179 __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
5180 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift); 5180 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift);
5181 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); 5181 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
5182 5182
5183 __ bind(&has_no_buffer); 5183 __ bind(&has_no_buffer);
5184 } 5184 }
5185 5185
5186 5186
5187 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { 5187 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) {
5188 Register input = ToRegister(instr->value()); 5188 Register input = ToRegister(instr->value());
5189 Register scratch = scratch0(); 5189 Register scratch = scratch0();
5190 5190
5191 __ GetObjectType(input, scratch, scratch); 5191 __ GetObjectType(input, scratch, scratch);
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
5997 __ li(at, scope_info); 5997 __ li(at, scope_info);
5998 __ Push(at, ToRegister(instr->function())); 5998 __ Push(at, ToRegister(instr->function()));
5999 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5999 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6000 RecordSafepoint(Safepoint::kNoLazyDeopt); 6000 RecordSafepoint(Safepoint::kNoLazyDeopt);
6001 } 6001 }
6002 6002
6003 6003
6004 #undef __ 6004 #undef __
6005 6005
6006 } } // namespace v8::internal 6006 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698