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

Unified Diff: src/compiler.cc

Issue 2908009: Create a separate class to encapsulate ScopeInfo serialization.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | « src/accessors.cc ('k') | src/contexts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 5059)
+++ src/compiler.cc (working copy)
@@ -160,7 +160,7 @@
Handle<Code> code = MakeCode(context, info);
if (!info->shared_info().is_null()) {
info->shared_info()->set_scope_info(
- *ScopeInfo<>::CreateHeapObject(info->scope()));
+ *SerializedScopeInfo::Create(info->scope()));
}
return code;
}
@@ -262,7 +262,7 @@
lit->name(),
lit->materialized_literal_count(),
code,
- ScopeInfo<>::CreateHeapObject(info.scope()));
+ SerializedScopeInfo::Create(info.scope()));
ASSERT_EQ(RelocInfo::kNoPosition, lit->function_token_position());
Compiler::SetFunctionInfo(result, lit, true, script);
@@ -450,7 +450,7 @@
// Update the shared function info with the compiled code and the scope info.
shared->set_code(*code);
- shared->set_scope_info(*ScopeInfo<>::CreateHeapObject(info->scope()));
+ shared->set_scope_info(*SerializedScopeInfo::Create(info->scope()));
// Set the expected number of properties for instances.
SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count());
@@ -485,7 +485,7 @@
bool allow_lazy = literal->AllowsLazyCompilation() &&
!LiveEditFunctionTracker::IsActive();
- Handle<Object> scope_info(ScopeInfo<>::EmptyHeapObject());
+ Handle<SerializedScopeInfo> scope_info(SerializedScopeInfo::Empty());
// Generate code
Handle<Code> code;
@@ -568,7 +568,7 @@
literal->start_position(),
script,
code);
- scope_info = ScopeInfo<>::CreateHeapObject(info.scope());
+ scope_info = SerializedScopeInfo::Create(info.scope());
}
// Create a shared function info object.
« no previous file with comments | « src/accessors.cc ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698