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

Unified Diff: src/heap.cc

Issue 332007: Fix issue with running some constructors having only this.x = ... assignments (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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 | « no previous file | test/mjsunit/regress/regress-483.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 3119)
+++ src/heap.cc (working copy)
@@ -2257,7 +2257,8 @@
// constructed without having these properties.
ASSERT(in_object_properties <= Map::kMaxPreAllocatedPropertyFields);
if (fun->shared()->has_only_this_property_assignments() &&
Mads Ager (chromium) 2009/10/23 12:17:40 Does has_only_simple_this_property_assignments imp
- fun->shared()->this_property_assignments_count() > 0) {
+ fun->shared()->this_property_assignments_count() > 0 &&
+ fun->shared()->has_only_simple_this_property_assignments()) {
int count = fun->shared()->this_property_assignments_count();
if (count > in_object_properties) {
count = in_object_properties;
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-483.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698