diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-08-13 07:43:53 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-08-13 07:43:53 -0700 |
commit | 4bbab1434635ada79b5a82a06872a15870213a52 (patch) | |
tree | 16031868188935d0e996fb83d64ae0dd82a38297 /deps/v8/src/heap-profiler.cc | |
parent | 0e8d858aba114c77b3fce96d052e2df162597ff2 (diff) | |
download | node-new-4bbab1434635ada79b5a82a06872a15870213a52.tar.gz |
Revert "Upgrade V8 to 2.3.7"
This reverts commit 083ee0f8b7a8d98d51bf2debf47d68117f13087f.
V8 build broken on cygwin:
./deps/v8/src/handles.h:62: instantiated from `T*
v8::internal::Handle<T>::operator->() const [with T = v8::internal::Code]'
./deps/v8/src/accessors.cc:396: instantiated from here
./deps/v8/src/handles-inl.h:50:
error: call of overloaded `BitCast(v8::internal::Code** const&)' is
ambiguous
./deps/v8/src/utils.h:732: note: candidates are: Dest
v8::internal::BitCast(const Source&) [with Dest = v8::internal::Code**,
Source = v8::internal::Code**]
./deps/v8/src/utils.h:743:
note: Dest v8::internal::BitCast(Source* const&) [with Dest
= v8::internal::Code**, Source = v8::internal::Code*]
scons: *** [obj/release/accessors.o] Error 1
Diffstat (limited to 'deps/v8/src/heap-profiler.cc')
-rw-r--r-- | deps/v8/src/heap-profiler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/heap-profiler.cc b/deps/v8/src/heap-profiler.cc index 7668bbc150..92ded7b347 100644 --- a/deps/v8/src/heap-profiler.cc +++ b/deps/v8/src/heap-profiler.cc @@ -111,10 +111,10 @@ int Clusterizer::CalculateNetworkSize(JSObject* obj) { int size = obj->Size(); // If 'properties' and 'elements' are non-empty (thus, non-shared), // take their size into account. - if (obj->properties() != Heap::empty_fixed_array()) { + if (FixedArray::cast(obj->properties())->length() != 0) { size += obj->properties()->Size(); } - if (obj->elements() != Heap::empty_fixed_array()) { + if (FixedArray::cast(obj->elements())->length() != 0) { size += obj->elements()->Size(); } // For functions, also account non-empty context and literals sizes. @@ -360,7 +360,7 @@ HeapSnapshot* HeapProfiler::TakeSnapshot(String* name) { HeapSnapshot* HeapProfiler::TakeSnapshotImpl(const char* name) { - Heap::CollectAllGarbage(true); + Heap::CollectAllGarbage(false); HeapSnapshot* result = snapshots_->NewSnapshot(name, next_snapshot_uid_++); HeapSnapshotGenerator generator(result); generator.GenerateSnapshot(); |