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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 817873003: Use weak cell in monomorphic KeyedStore IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips Created 6 years 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/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 3980 matching lines...) Expand 10 before | Expand all | Expand 10 after
3991 SmiCheckType smi_check_type) { 3991 SmiCheckType smi_check_type) {
3992 if (smi_check_type == DO_SMI_CHECK) { 3992 if (smi_check_type == DO_SMI_CHECK) {
3993 JumpIfSmi(obj, fail); 3993 JumpIfSmi(obj, fail);
3994 } 3994 }
3995 Label success; 3995 Label success;
3996 CompareMapAndBranch(obj, scratch, map, &success, ne, fail); 3996 CompareMapAndBranch(obj, scratch, map, &success, ne, fail);
3997 bind(&success); 3997 bind(&success);
3998 } 3998 }
3999 3999
4000 4000
4001 void MacroAssembler::DispatchMap(Register obj, 4001 void MacroAssembler::DispatchWeakMap(Register obj, Register scratch1,
4002 Register scratch, 4002 Register scratch2, Handle<WeakCell> cell,
4003 Handle<Map> map, 4003 Handle<Code> success,
4004 Handle<Code> success, 4004 SmiCheckType smi_check_type) {
4005 SmiCheckType smi_check_type) {
4006 Label fail; 4005 Label fail;
4007 if (smi_check_type == DO_SMI_CHECK) { 4006 if (smi_check_type == DO_SMI_CHECK) {
4008 JumpIfSmi(obj, &fail); 4007 JumpIfSmi(obj, &fail);
4009 } 4008 }
4010 lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); 4009 lw(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset));
4011 Jump(success, RelocInfo::CODE_TARGET, eq, scratch, Operand(map)); 4010 GetWeakValue(scratch2, cell);
4011 Jump(success, RelocInfo::CODE_TARGET, eq, scratch1, Operand(scratch2));
4012 bind(&fail); 4012 bind(&fail);
4013 } 4013 }
4014 4014
4015 4015
4016 void MacroAssembler::CheckMap(Register obj, 4016 void MacroAssembler::CheckMap(Register obj,
4017 Register scratch, 4017 Register scratch,
4018 Heap::RootListIndex index, 4018 Heap::RootListIndex index,
4019 Label* fail, 4019 Label* fail,
4020 SmiCheckType smi_check_type) { 4020 SmiCheckType smi_check_type) {
4021 if (smi_check_type == DO_SMI_CHECK) { 4021 if (smi_check_type == DO_SMI_CHECK) {
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
6270 } 6270 }
6271 if (mag.shift > 0) sra(result, result, mag.shift); 6271 if (mag.shift > 0) sra(result, result, mag.shift);
6272 srl(at, dividend, 31); 6272 srl(at, dividend, 31);
6273 Addu(result, result, Operand(at)); 6273 Addu(result, result, Operand(at));
6274 } 6274 }
6275 6275
6276 6276
6277 } } // namespace v8::internal 6277 } } // namespace v8::internal
6278 6278
6279 #endif // V8_TARGET_ARCH_MIPS 6279 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698