OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 #include "src/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" |
8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 | 355 |
356 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, | 356 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
357 Register map_reg, | 357 Register map_reg, |
358 Register scratch, | 358 Register scratch, |
359 Label* miss) { | 359 Label* miss) { |
360 Handle<WeakCell> cell = Map::WeakCellForMap(transition); | 360 Handle<WeakCell> cell = Map::WeakCellForMap(transition); |
361 DCHECK(!map_reg.is(scratch)); | 361 DCHECK(!map_reg.is(scratch)); |
362 __ LoadWeakValue(map_reg, cell, miss); | 362 __ LoadWeakValue(map_reg, cell, miss); |
363 if (transition->CanBeDeprecated()) { | 363 if (transition->CanBeDeprecated()) { |
364 __ ld(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); | 364 __ lwu(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); |
365 __ And(at, scratch, Operand(Map::Deprecated::kMask)); | 365 __ And(at, scratch, Operand(Map::Deprecated::kMask)); |
366 __ Branch(miss, ne, at, Operand(zero_reg)); | 366 __ Branch(miss, ne, at, Operand(zero_reg)); |
367 } | 367 } |
368 } | 368 } |
369 | 369 |
370 | 370 |
371 void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg, | 371 void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg, |
372 int descriptor, | 372 int descriptor, |
373 Register value_reg, | 373 Register value_reg, |
374 Register scratch, | 374 Register scratch, |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 // Return the generated code. | 781 // Return the generated code. |
782 return GetCode(kind(), Code::NORMAL, name); | 782 return GetCode(kind(), Code::NORMAL, name); |
783 } | 783 } |
784 | 784 |
785 | 785 |
786 #undef __ | 786 #undef __ |
787 } // namespace internal | 787 } // namespace internal |
788 } // namespace v8 | 788 } // namespace v8 |
789 | 789 |
790 #endif // V8_TARGET_ARCH_MIPS64 | 790 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |