Fixes for Windows and Mac builds after r25250.

R=verwaest@chromium.org
TBR=verwaest@chromium.org

Review URL: https://codereview.chromium.org/717573002

Cr-Commit-Position: refs/heads/master@{#25251}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25251 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ishell@chromium.org 2014-11-10 16:54:55 +00:00
parent f133ac501b
commit 07085da575
4 changed files with 5 additions and 6 deletions

View File

@ -153,7 +153,6 @@ LayoutDescriptor* LayoutDescriptor::cast_gc_safe(Object* object) {
InobjectPropertiesHelper::InobjectPropertiesHelper(Map* map)
: all_fields_tagged_(true),
header_size_(0),
inobject_properties_count_(0),
layout_descriptor_(LayoutDescriptor::FastPointerLayout()) {
if (!FLAG_unbox_double_fields) return;

View File

@ -118,7 +118,6 @@ class InobjectPropertiesHelper {
private:
bool all_fields_tagged_;
int header_size_;
int inobject_properties_count_;
LayoutDescriptor* layout_descriptor_;
};
}

View File

@ -7378,9 +7378,10 @@ void ExternalTwoByteString::ExternalTwoByteStringIterateBody() {
}
static void IterateBodyUsingLayoutDescriptor(HeapObject* object,
int start_offset, int end_offset,
ObjectVisitor* v) {
static inline void IterateBodyUsingLayoutDescriptor(HeapObject* object,
int start_offset,
int end_offset,
ObjectVisitor* v) {
DCHECK(FLAG_unbox_double_fields);
DCHECK(IsAligned(start_offset, kPointerSize) &&
IsAligned(end_offset, kPointerSize));

View File

@ -353,7 +353,7 @@ void StringStream::PrintUsingMap(JSObject* js_object) {
FieldIndex index = FieldIndex::ForDescriptor(map, i);
if (js_object->IsUnboxedDoubleField(index)) {
double value = js_object->RawFastDoublePropertyAt(index);
Add("<unboxed double> %.16g\n", value);
Add("<unboxed double> %.16g\n", FmtElm(value));
} else {
Object* value = js_object->RawFastPropertyAt(index);
Add("%o\n", value);