OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 EMIT_REMEMBERED_SET, smi_check); | 509 EMIT_REMEMBERED_SET, smi_check); |
510 } | 510 } |
511 } | 511 } |
512 | 512 |
513 // Return the value (register rax). | 513 // Return the value (register rax). |
514 DCHECK(value_reg.is(rax)); | 514 DCHECK(value_reg.is(rax)); |
515 __ ret(0); | 515 __ ret(0); |
516 } | 516 } |
517 | 517 |
518 | 518 |
519 void NamedStoreHandlerCompiler::GenerateStoreField(LookupResult* lookup, | 519 void NamedStoreHandlerCompiler::GenerateStoreField(LookupIterator* lookup, |
520 Register value_reg, | 520 Register value_reg, |
521 Label* miss_label) { | 521 Label* miss_label) { |
522 DCHECK(lookup->representation().IsHeapObject()); | 522 DCHECK(lookup->representation().IsHeapObject()); |
523 __ JumpIfSmi(value_reg, miss_label); | 523 __ JumpIfSmi(value_reg, miss_label); |
524 HeapType::Iterator<Map> it = lookup->GetFieldType()->Classes(); | 524 HeapType::Iterator<Map> it = lookup->GetFieldType()->Classes(); |
525 Label do_store; | 525 Label do_store; |
526 while (true) { | 526 while (true) { |
527 __ CompareMap(value_reg, it.Current()); | 527 __ CompareMap(value_reg, it.Current()); |
528 it.Advance(); | 528 it.Advance(); |
529 if (it.Done()) { | 529 if (it.Done()) { |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 // ----------------------------------- | 1125 // ----------------------------------- |
1126 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1126 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1127 } | 1127 } |
1128 | 1128 |
1129 | 1129 |
1130 #undef __ | 1130 #undef __ |
1131 | 1131 |
1132 } } // namespace v8::internal | 1132 } } // namespace v8::internal |
1133 | 1133 |
1134 #endif // V8_TARGET_ARCH_X64 | 1134 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |