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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 2119633002: Remove support for pretenuring as it is not fully implemented and is currently turned on for a very… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address self review changes. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
diff --git a/runtime/vm/stub_code_ia32.cc b/runtime/vm/stub_code_ia32.cc
index 836e4b5281cf8736e5d51786656c7f18d8719e64..589058760a8bb9d7da531f768e84e9c3fb3f1600 100644
--- a/runtime/vm/stub_code_ia32.cc
+++ b/runtime/vm/stub_code_ia32.cc
@@ -576,7 +576,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
// EBX: allocation size.
const intptr_t cid = kArrayCid;
- Heap::Space space = Heap::SpaceForAllocation(cid);
+ Heap::Space space = Heap::kNew;
__ movl(EDI, Address(THR, Thread::heap_offset()));
__ movl(EAX, Address(EDI, Heap::TopOffset(space)));
__ addl(EBX, EAX);
@@ -806,7 +806,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
// Now allocate the object.
// EDX: number of context variables.
const intptr_t cid = kContextCid;
- Heap::Space space = Heap::SpaceForAllocation(cid);
+ Heap::Space space = Heap::kNew;
__ movl(ECX, Address(THR, Thread::heap_offset()));
__ movl(EAX, Address(ECX, Heap::TopOffset(space)));
__ addl(EBX, EAX);
@@ -1018,7 +1018,7 @@ void StubCode::GenerateAllocationStubForClass(
// Allocate the object and update top to point to
// next object start and initialize the allocated object.
// EDX: instantiated type arguments (if is_cls_parameterized).
- Heap::Space space = Heap::SpaceForAllocation(cls.id());
+ Heap::Space space = Heap::kNew;
__ movl(EDI, Address(THR, Thread::heap_offset()));
__ movl(EAX, Address(EDI, Heap::TopOffset(space)));
__ leal(EBX, Address(EAX, instance_size));
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698