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

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

Issue 954863002: MIPS: Move Maps' back pointers from "transitions" to "constructor" field (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix register conflict again. Created 5 years, 9 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
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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 4225 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 4236 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
4237 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); 4237 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
4238 Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE)); 4238 Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE));
4239 } 4239 }
4240 4240
4241 4241
4242 // --------------------------------------------------------------------------- 4242 // ---------------------------------------------------------------------------
4243 // Support functions. 4243 // Support functions.
4244 4244
4245 4245
4246 void MacroAssembler::GetMapConstructor(Register result, Register map,
4247 Register temp, Register temp2) {
4248 Label done, loop;
4249 ld(result, FieldMemOperand(map, Map::kConstructorOrBackPointerOffset));
4250 bind(&loop);
4251 JumpIfSmi(result, &done);
4252 GetObjectType(result, temp, temp2);
4253 Branch(&done, ne, temp2, Operand(MAP_TYPE));
4254 ld(result, FieldMemOperand(result, Map::kConstructorOrBackPointerOffset));
4255 Branch(&loop);
4256 bind(&done);
4257 }
4258
4259
4246 void MacroAssembler::TryGetFunctionPrototype(Register function, 4260 void MacroAssembler::TryGetFunctionPrototype(Register function,
4247 Register result, 4261 Register result,
4248 Register scratch, 4262 Register scratch,
4249 Label* miss, 4263 Label* miss,
4250 bool miss_on_bound_function) { 4264 bool miss_on_bound_function) {
4251 Label non_instance; 4265 Label non_instance;
4252 if (miss_on_bound_function) { 4266 if (miss_on_bound_function) {
4253 // Check that the receiver isn't a smi. 4267 // Check that the receiver isn't a smi.
4254 JumpIfSmi(function, miss); 4268 JumpIfSmi(function, miss);
4255 4269
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
6177 } 6191 }
6178 if (mag.shift > 0) sra(result, result, mag.shift); 6192 if (mag.shift > 0) sra(result, result, mag.shift);
6179 srl(at, dividend, 31); 6193 srl(at, dividend, 31);
6180 Addu(result, result, Operand(at)); 6194 Addu(result, result, Operand(at));
6181 } 6195 }
6182 6196
6183 6197
6184 } } // namespace v8::internal 6198 } } // namespace v8::internal
6185 6199
6186 #endif // V8_TARGET_ARCH_MIPS64 6200 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/mips64/lithium-codegen-mips64.cc ('K') | « src/mips64/macro-assembler-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698