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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | 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 5155 matching lines...) Expand 10 before | Expand all | Expand 10 after
5166 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); 5166 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg));
5167 } 5167 }
5168 } 5168 }
5169 5169
5170 5170
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;
5177 __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); 5176 __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
5178 __ JumpIfSmi(scratch, &has_no_buffer);
5179 __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); 5177 __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
5180 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift); 5178 __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift);
5181 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg)); 5179 DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
5182
5183 __ bind(&has_no_buffer);
5184 } 5180 }
5185 5181
5186 5182
5187 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { 5183 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) {
5188 Register input = ToRegister(instr->value()); 5184 Register input = ToRegister(instr->value());
5189 Register scratch = scratch0(); 5185 Register scratch = scratch0();
5190 5186
5191 __ GetObjectType(input, scratch, scratch); 5187 __ GetObjectType(input, scratch, scratch);
5192 5188
5193 if (instr->hydrogen()->is_interval_check()) { 5189 if (instr->hydrogen()->is_interval_check()) {
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
5997 __ li(at, scope_info); 5993 __ li(at, scope_info);
5998 __ Push(at, ToRegister(instr->function())); 5994 __ Push(at, ToRegister(instr->function()));
5999 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5995 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6000 RecordSafepoint(Safepoint::kNoLazyDeopt); 5996 RecordSafepoint(Safepoint::kNoLazyDeopt);
6001 } 5997 }
6002 5998
6003 5999
6004 #undef __ 6000 #undef __
6005 6001
6006 } } // namespace v8::internal 6002 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698