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

Side by Side Diff: test/cctest/compiler/test-linkage.cc

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 8 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 | « test/cctest/compiler/test-jump-threading.cc ('k') | test/cctest/compiler/test-loop-analysis.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler.h" 6 #include "src/compiler.h"
7 #include "src/parsing/parser.h" 7 #include "src/parsing/parser.h"
8 #include "src/zone.h" 8 #include "src/zone.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 91
92 TEST(TestLinkageRuntimeCall) { 92 TEST(TestLinkageRuntimeCall) {
93 // TODO(titzer): test linkage creation for outgoing runtime calls. 93 // TODO(titzer): test linkage creation for outgoing runtime calls.
94 } 94 }
95 95
96 96
97 TEST(TestLinkageStubCall) { 97 TEST(TestLinkageStubCall) {
98 Isolate* isolate = CcTest::InitIsolateOnce(); 98 Isolate* isolate = CcTest::InitIsolateOnce();
99 Zone zone; 99 Zone zone(isolate->allocator());
100 ToNumberStub stub(isolate); 100 ToNumberStub stub(isolate);
101 CompilationInfo info("test", isolate, &zone, Code::ComputeFlags(Code::STUB)); 101 CompilationInfo info("test", isolate, &zone, Code::ComputeFlags(Code::STUB));
102 CallInterfaceDescriptor interface_descriptor = 102 CallInterfaceDescriptor interface_descriptor =
103 stub.GetCallInterfaceDescriptor(); 103 stub.GetCallInterfaceDescriptor();
104 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor( 104 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor(
105 isolate, &zone, interface_descriptor, stub.GetStackParameterCount(), 105 isolate, &zone, interface_descriptor, stub.GetStackParameterCount(),
106 CallDescriptor::kNoFlags, Operator::kNoProperties); 106 CallDescriptor::kNoFlags, Operator::kNoProperties);
107 CHECK(descriptor); 107 CHECK(descriptor);
108 CHECK_EQ(0, static_cast<int>(descriptor->StackParameterCount())); 108 CHECK_EQ(0, static_cast<int>(descriptor->StackParameterCount()));
109 CHECK_EQ(1, static_cast<int>(descriptor->ReturnCount())); 109 CHECK_EQ(1, static_cast<int>(descriptor->ReturnCount()));
110 CHECK_EQ(Operator::kNoProperties, descriptor->properties()); 110 CHECK_EQ(Operator::kNoProperties, descriptor->properties());
111 CHECK_EQ(false, descriptor->IsJSFunctionCall()); 111 CHECK_EQ(false, descriptor->IsJSFunctionCall());
112 // TODO(titzer): test linkage creation for outgoing stub calls. 112 // TODO(titzer): test linkage creation for outgoing stub calls.
113 } 113 }
114 114
115 } // namespace compiler 115 } // namespace compiler
116 } // namespace internal 116 } // namespace internal
117 } // namespace v8 117 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-jump-threading.cc ('k') | test/cctest/compiler/test-loop-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698