// Check the basic conditions for generating inline constructor code.
if (!FLAG_inline_new
|| !has_only_simple_this_property_assignments()
- || !this_property_assignments_count() > 0) {
+ || this_property_assignments_count() == 0) {
return false;
}
}
// Traverse the proposed prototype chain looking for setters for properties of
- // the same names as are set by the inline constructor..
+ // the same names as are set by the inline constructor.
for (Object* obj = prototype;
obj != Heap::null_value();
obj = obj->GetPrototype()) {
" this.x = 23"
"};"
"C2.prototype = { };"
- "C2.prototype.__proto__ = P;"
- ""
- ""
- "");
+ "C2.prototype.__proto__ = P;");
v8::Local<v8::Script> script;
script = v8::Script::Compile(v8_str("new C1();"));
" this.x = 23"
"};"
"C2.prototype = { };"
- "C2.prototype.__proto__ = P;"
- ""
- ""
- "");
+ "C2.prototype.__proto__ = P;");
v8::Local<v8::Script> script;
script = v8::Script::Compile(v8_str("new C1();"));