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

Unified Diff: runtime/vm/object.cc

Issue 10702067: - Separate store buffer data in the isolate into the StoreBufferBlock and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/object.h ('k') | runtime/vm/store_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 9322)
+++ runtime/vm/object.cc (working copy)
@@ -2127,7 +2127,7 @@
Class::Handle(Object::unresolved_class_class());
RawObject* raw = Object::Allocate(unresolved_class_class,
UnresolvedClass::InstanceSize(),
- Heap::kNew);
+ Heap::kOld);
return reinterpret_cast<RawUnresolvedClass*>(raw);
}
@@ -4334,7 +4334,7 @@
result.set_kind(kind);
result.set_literal(literal);
if (kind == Token::kINTEGER) {
- const Integer& value = Integer::Handle(Integer::New(literal));
+ const Integer& value = Integer::Handle(Integer::New(literal, Heap::kOld));
result.set_value(value);
} else if (kind == Token::kDOUBLE) {
const Double& value = Double::Handle(Double::NewCanonical(literal));
@@ -7333,23 +7333,25 @@
}
-RawInteger* Integer::New(const String& str) {
+RawInteger* Integer::New(const String& str, Heap::Space space) {
+ // TODO(iposva): If returning a big integer it will not necessarily be in the
+ // requested space.
const Bigint& big = Bigint::Handle(Bigint::New(str));
if (BigintOperations::FitsIntoSmi(big)) {
return BigintOperations::ToSmi(big);
} else if (BigintOperations::FitsIntoMint(big)) {
- return Mint::New(BigintOperations::ToMint(big));
+ return Mint::New(BigintOperations::ToMint(big), space);
} else {
return big.raw();
}
}
-RawInteger* Integer::New(int64_t value) {
+RawInteger* Integer::New(int64_t value, Heap::Space space) {
if ((value <= Smi::kMaxValue) && (value >= Smi::kMinValue)) {
return Smi::New(value);
}
- return Mint::New(value);
+ return Mint::New(value, space);
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/store_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698