Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 1173253006: Revert of Serializer: support all alignment kinds. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698