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

Side by Side Diff: src/hydrogen.h

Issue 812353002: Use weak cell to embed map in CompareNil IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 6 years 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 | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.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 #ifndef V8_HYDROGEN_H_ 5 #ifndef V8_HYDROGEN_H_
6 #define V8_HYDROGEN_H_ 6 #define V8_HYDROGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1857 HValue* allocation_site, 1857 HValue* allocation_site,
1858 AllocationSiteMode mode); 1858 AllocationSiteMode mode);
1859 1859
1860 HValue* BuildCloneShallowArrayNonEmpty(HValue* boilerplate, 1860 HValue* BuildCloneShallowArrayNonEmpty(HValue* boilerplate,
1861 HValue* allocation_site, 1861 HValue* allocation_site,
1862 AllocationSiteMode mode, 1862 AllocationSiteMode mode,
1863 ElementsKind kind); 1863 ElementsKind kind);
1864 1864
1865 HValue* BuildElementIndexHash(HValue* index); 1865 HValue* BuildElementIndexHash(HValue* index);
1866 1866
1867 void BuildCompareNil( 1867 enum MapEmbedding { kEmbedMapsDirectly, kEmbedMapsViaWeakCells };
1868 HValue* value, 1868
1869 Type* type, 1869 void BuildCompareNil(HValue* value, Type* type, HIfContinuation* continuation,
1870 HIfContinuation* continuation); 1870 MapEmbedding map_embedding = kEmbedMapsDirectly);
1871 1871
1872 void BuildCreateAllocationMemento(HValue* previous_object, 1872 void BuildCreateAllocationMemento(HValue* previous_object,
1873 HValue* previous_object_size, 1873 HValue* previous_object_size,
1874 HValue* payload); 1874 HValue* payload);
1875 1875
1876 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant); 1876 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant);
1877 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, 1877 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype,
1878 Handle<JSObject> holder); 1878 Handle<JSObject> holder);
1879 1879
1880 HInstruction* BuildGetNativeContext(HValue* closure); 1880 HInstruction* BuildGetNativeContext(HValue* closure);
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2942 } 2942 }
2943 2943
2944 private: 2944 private:
2945 HGraphBuilder* builder_; 2945 HGraphBuilder* builder_;
2946 }; 2946 };
2947 2947
2948 2948
2949 } } // namespace v8::internal 2949 } } // namespace v8::internal
2950 2950
2951 #endif // V8_HYDROGEN_H_ 2951 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698