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

Unified Diff: runtime/vm/ast.h

Issue 10786003: Ensure objects emitted in code are allocated in old space. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 5 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/assembler.cc ('k') | runtime/vm/bigint_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index b02a10d9c5bb9d4f1474dcb78a4c4c3fc3fa2f10..ce4e064d638de4ee05676209f481053383958cde 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -309,6 +309,7 @@ class LiteralNode : public AstNode {
LiteralNode(intptr_t token_pos, const Instance& literal)
: AstNode(token_pos), literal_(literal) {
ASSERT(literal.IsZoneHandle());
+ ASSERT(literal.IsSmi() || literal.IsOld());
#if defined(DEBUG)
if (literal.IsString()) {
ASSERT(String::Cast(literal).IsSymbol());
« no previous file with comments | « runtime/vm/assembler.cc ('k') | runtime/vm/bigint_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698