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

Unified Diff: src/code-stubs-hydrogen.cc

Issue 1735803003: [turbofan] Adds an Allocate macro to the CodeStubAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 07177a277a091b40671e1d9acfab32a55d32cc7f..7387bc2a01a98d912fbaa0d2c0be521f89a02e7e 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -1185,36 +1185,6 @@ Handle<Code> TransitionElementsKindStub::GenerateCode() {
template <>
-HValue* CodeStubGraphBuilder<AllocateHeapNumberStub>::BuildCodeStub() {
- HValue* result =
- Add<HAllocate>(Add<HConstant>(HeapNumber::kSize), HType::HeapNumber(),
- NOT_TENURED, HEAP_NUMBER_TYPE);
- AddStoreMapConstant(result, isolate()->factory()->heap_number_map());
- return result;
-}
-
-
-Handle<Code> AllocateHeapNumberStub::GenerateCode() {
- return DoGenerateCode(this);
-}
-
-
-template <>
-HValue* CodeStubGraphBuilder<AllocateMutableHeapNumberStub>::BuildCodeStub() {
- HValue* result =
- Add<HAllocate>(Add<HConstant>(HeapNumber::kSize), HType::HeapObject(),
- NOT_TENURED, MUTABLE_HEAP_NUMBER_TYPE);
- AddStoreMapConstant(result, isolate()->factory()->mutable_heap_number_map());
- return result;
-}
-
-
-Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() {
- return DoGenerateCode(this);
-}
-
-
-template <>
HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
JS_OBJECT_TYPE);

Powered by Google App Engine
This is Rietveld 408576698