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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/ic/call-optimization.h" | 9 #include "src/ic/call-optimization.h" |
10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 __ li(this->name(), Operand(name)); | 336 __ li(this->name(), Operand(name)); |
337 } | 337 } |
338 } | 338 } |
339 | 339 |
340 | 340 |
341 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { | 341 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { |
342 __ li(this->name(), Operand(name)); | 342 __ li(this->name(), Operand(name)); |
343 } | 343 } |
344 | 344 |
345 | 345 |
| 346 void NamedStoreHandlerCompiler::GeneratePushMap(Register map_reg, |
| 347 Register scratch) { |
| 348 DCHECK(false); // Not implemented. |
| 349 } |
| 350 |
| 351 |
346 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, | 352 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
| 353 Register map_reg, |
347 Register scratch, | 354 Register scratch, |
348 Label* miss) { | 355 Label* miss) { |
349 Handle<WeakCell> cell = Map::WeakCellForMap(transition); | 356 Handle<WeakCell> cell = Map::WeakCellForMap(transition); |
350 Register map_reg = StoreTransitionDescriptor::MapRegister(); | |
351 DCHECK(!map_reg.is(scratch)); | 357 DCHECK(!map_reg.is(scratch)); |
352 __ LoadWeakValue(map_reg, cell, miss); | 358 __ LoadWeakValue(map_reg, cell, miss); |
353 if (transition->CanBeDeprecated()) { | 359 if (transition->CanBeDeprecated()) { |
354 __ ld(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); | 360 __ ld(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); |
355 __ And(at, scratch, Operand(Map::Deprecated::kMask)); | 361 __ And(at, scratch, Operand(Map::Deprecated::kMask)); |
356 __ Branch(miss, ne, at, Operand(zero_reg)); | 362 __ Branch(miss, ne, at, Operand(zero_reg)); |
357 } | 363 } |
358 } | 364 } |
359 | 365 |
360 | 366 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 // Return the generated code. | 782 // Return the generated code. |
777 return GetCode(kind(), Code::NORMAL, name); | 783 return GetCode(kind(), Code::NORMAL, name); |
778 } | 784 } |
779 | 785 |
780 | 786 |
781 #undef __ | 787 #undef __ |
782 } // namespace internal | 788 } // namespace internal |
783 } // namespace v8 | 789 } // namespace v8 |
784 | 790 |
785 #endif // V8_TARGET_ARCH_MIPS64 | 791 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |