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