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_PPC | 7 #if V8_TARGET_ARCH_PPC |
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 __ mov(this->name(), Operand(name)); | 344 __ mov(this->name(), Operand(name)); |
345 } | 345 } |
346 } | 346 } |
347 | 347 |
348 | 348 |
349 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { | 349 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { |
350 __ mov(this->name(), Operand(name)); | 350 __ mov(this->name(), Operand(name)); |
351 } | 351 } |
352 | 352 |
353 | 353 |
| 354 void NamedStoreHandlerCompiler::GeneratePushMap(Register map_reg, |
| 355 Register scratch) { |
| 356 DCHECK(false); // Not implemented. |
| 357 } |
| 358 |
| 359 |
354 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, | 360 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
| 361 Register map_reg, |
355 Register scratch, | 362 Register scratch, |
356 Label* miss) { | 363 Label* miss) { |
357 Handle<WeakCell> cell = Map::WeakCellForMap(transition); | 364 Handle<WeakCell> cell = Map::WeakCellForMap(transition); |
358 Register map_reg = StoreTransitionDescriptor::MapRegister(); | |
359 DCHECK(!map_reg.is(scratch)); | 365 DCHECK(!map_reg.is(scratch)); |
360 __ LoadWeakValue(map_reg, cell, miss); | 366 __ LoadWeakValue(map_reg, cell, miss); |
361 if (transition->CanBeDeprecated()) { | 367 if (transition->CanBeDeprecated()) { |
362 __ lwz(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); | 368 __ lwz(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); |
363 __ DecodeField<Map::Deprecated>(r0, scratch, SetRC); | 369 __ DecodeField<Map::Deprecated>(r0, scratch, SetRC); |
364 __ bne(miss, cr0); | 370 __ bne(miss, cr0); |
365 } | 371 } |
366 } | 372 } |
367 | 373 |
368 | 374 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 // Return the generated code. | 787 // Return the generated code. |
782 return GetCode(kind(), Code::NORMAL, name); | 788 return GetCode(kind(), Code::NORMAL, name); |
783 } | 789 } |
784 | 790 |
785 | 791 |
786 #undef __ | 792 #undef __ |
787 } // namespace internal | 793 } // namespace internal |
788 } // namespace v8 | 794 } // namespace v8 |
789 | 795 |
790 #endif // V8_TARGET_ARCH_ARM | 796 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |