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 #include "src/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/field-index.h" | 9 #include "src/field-index.h" |
10 #include "src/hydrogen.h" | 10 #include "src/hydrogen.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 HValue* size = Add<HConstant>(WeakCell::kSize); | 634 HValue* size = Add<HConstant>(WeakCell::kSize); |
635 HInstruction* object = | 635 HInstruction* object = |
636 Add<HAllocate>(size, HType::JSObject(), TENURED, JS_OBJECT_TYPE); | 636 Add<HAllocate>(size, HType::JSObject(), TENURED, JS_OBJECT_TYPE); |
637 | 637 |
638 Handle<Map> weak_cell_map = isolate()->factory()->weak_cell_map(); | 638 Handle<Map> weak_cell_map = isolate()->factory()->weak_cell_map(); |
639 AddStoreMapConstant(object, weak_cell_map); | 639 AddStoreMapConstant(object, weak_cell_map); |
640 | 640 |
641 HInstruction* value = GetParameter(CreateWeakCellDescriptor::kValueIndex); | 641 HInstruction* value = GetParameter(CreateWeakCellDescriptor::kValueIndex); |
642 Add<HStoreNamedField>(object, HObjectAccess::ForWeakCellValue(), value); | 642 Add<HStoreNamedField>(object, HObjectAccess::ForWeakCellValue(), value); |
643 Add<HStoreNamedField>(object, HObjectAccess::ForWeakCellNext(), | 643 Add<HStoreNamedField>(object, HObjectAccess::ForWeakCellNext(), |
644 graph()->GetConstantHole()); | 644 graph()->GetConstantUndefined()); |
645 | 645 |
646 HInstruction* feedback_vector = | 646 HInstruction* feedback_vector = |
647 GetParameter(CreateWeakCellDescriptor::kVectorIndex); | 647 GetParameter(CreateWeakCellDescriptor::kVectorIndex); |
648 HInstruction* slot = GetParameter(CreateWeakCellDescriptor::kSlotIndex); | 648 HInstruction* slot = GetParameter(CreateWeakCellDescriptor::kSlotIndex); |
649 Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS, | 649 Add<HStoreKeyed>(feedback_vector, slot, object, FAST_ELEMENTS, |
650 INITIALIZING_STORE); | 650 INITIALIZING_STORE); |
651 return graph()->GetConstant0(); | 651 return graph()->GetConstant0(); |
652 } | 652 } |
653 | 653 |
654 | 654 |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 return Pop(); | 2229 return Pop(); |
2230 } | 2230 } |
2231 | 2231 |
2232 | 2232 |
2233 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2233 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
2234 return DoGenerateCode(this); | 2234 return DoGenerateCode(this); |
2235 } | 2235 } |
2236 | 2236 |
2237 } // namespace internal | 2237 } // namespace internal |
2238 } // namespace v8 | 2238 } // namespace v8 |
OLD | NEW |