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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 __ Move(this->name(), name); | 347 __ Move(this->name(), name); |
348 } | 348 } |
349 } | 349 } |
350 | 350 |
351 | 351 |
352 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { | 352 void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { |
353 __ Move(this->name(), name); | 353 __ Move(this->name(), name); |
354 } | 354 } |
355 | 355 |
356 | 356 |
| 357 void NamedStoreHandlerCompiler::GeneratePushMap(Register map_reg, |
| 358 Register scratch) { |
| 359 DCHECK(false); // Not implemented. |
| 360 } |
| 361 |
| 362 |
357 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, | 363 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
| 364 Register map_reg, |
358 Register scratch, | 365 Register scratch, |
359 Label* miss) { | 366 Label* miss) { |
360 Handle<WeakCell> cell = Map::WeakCellForMap(transition); | 367 Handle<WeakCell> cell = Map::WeakCellForMap(transition); |
361 Register map_reg = StoreTransitionDescriptor::MapRegister(); | |
362 DCHECK(!map_reg.is(scratch)); | 368 DCHECK(!map_reg.is(scratch)); |
363 __ LoadWeakValue(map_reg, cell, miss); | 369 __ LoadWeakValue(map_reg, cell, miss); |
364 if (transition->CanBeDeprecated()) { | 370 if (transition->CanBeDeprecated()) { |
365 __ movl(scratch, FieldOperand(map_reg, Map::kBitField3Offset)); | 371 __ movl(scratch, FieldOperand(map_reg, Map::kBitField3Offset)); |
366 __ andl(scratch, Immediate(Map::Deprecated::kMask)); | 372 __ andl(scratch, Immediate(Map::Deprecated::kMask)); |
367 __ j(not_zero, miss); | 373 __ j(not_zero, miss); |
368 } | 374 } |
369 } | 375 } |
370 | 376 |
371 | 377 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 // Return the generated code. | 806 // Return the generated code. |
801 return GetCode(kind(), Code::NORMAL, name); | 807 return GetCode(kind(), Code::NORMAL, name); |
802 } | 808 } |
803 | 809 |
804 | 810 |
805 #undef __ | 811 #undef __ |
806 } // namespace internal | 812 } // namespace internal |
807 } // namespace v8 | 813 } // namespace v8 |
808 | 814 |
809 #endif // V8_TARGET_ARCH_X64 | 815 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |