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