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

Unified Diff: src/heap/heap.cc

Issue 1371893002: objects-inl.h: Remove ACCESSORS_TO_SMI macro (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 396ba4f985fcead44a1cec50fc8ad2ca8b401680..853565382ef2793bdae97ce861292f3ee901c045 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -137,6 +137,7 @@ Heap::Heap()
old_generation_size_at_last_gc_(0),
gcs_since_last_deopt_(0),
allocation_sites_scratchpad_length_(0),
+ last_script_id_(v8::UnboundScript::kNoScriptId),
ring_buffer_full_(false),
ring_buffer_end_(0),
promotion_queue_(this),
@@ -2724,12 +2725,9 @@ void Heap::CreateInitialObjects() {
set_materialized_objects(*factory->NewFixedArray(0, TENURED));
- // Handling of script id generation is in Factory::NewScript.
- set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
-
// Allocate the empty script.
Handle<Script> script = factory->NewScript(factory->empty_string());
- script->set_type(Smi::FromInt(Script::TYPE_NATIVE));
+ script->set_type(Script::TYPE_NATIVE);
set_empty_script(*script);
Handle<PropertyCell> cell = factory->NewPropertyCell();
@@ -3910,7 +3908,7 @@ AllocationResult Heap::AllocateSymbol() {
Symbol::cast(result)
->set_hash_field(Name::kIsNotArrayIndexMask | (hash << Name::kHashShift));
Symbol::cast(result)->set_name(undefined_value());
- Symbol::cast(result)->set_flags(Smi::FromInt(0));
+ Symbol::cast(result)->set_flags(0);
DCHECK(!Symbol::cast(result)->is_private());
return result;
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698