Change a few style issues (dead code, unitialized members) flagged by

Coverity Prevent.  All are benign.

Review URL: http://codereview.chromium.org/159264

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2525 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1ca19c38
...@@ -47,14 +47,10 @@ namespace internal { ...@@ -47,14 +47,10 @@ namespace internal {
// generate an index for each native JS file. // generate an index for each native JS file.
class SourceCodeCache BASE_EMBEDDED { class SourceCodeCache BASE_EMBEDDED {
public: public:
explicit SourceCodeCache(Script::Type type): type_(type) { } explicit SourceCodeCache(Script::Type type): type_(type), cache_(NULL) { }
void Initialize(bool create_heap_objects) { void Initialize(bool create_heap_objects) {
if (create_heap_objects) { cache_ = create_heap_objects ? Heap::empty_fixed_array() : NULL;
cache_ = Heap::empty_fixed_array();
} else {
cache_ = NULL;
}
} }
void Iterate(ObjectVisitor* v) { void Iterate(ObjectVisitor* v) {
......
...@@ -38,8 +38,9 @@ namespace internal { ...@@ -38,8 +38,9 @@ namespace internal {
class AstOptimizer: public AstVisitor { class AstOptimizer: public AstVisitor {
public: public:
explicit AstOptimizer() {} explicit AstOptimizer() : has_function_literal_(false) {}
explicit AstOptimizer(Handle<String> enclosing_name) { explicit AstOptimizer(Handle<String> enclosing_name)
: has_function_literal_(false) {
func_name_inferrer_.PushEnclosingName(enclosing_name); func_name_inferrer_.PushEnclosingName(enclosing_name);
} }
......
...@@ -133,8 +133,6 @@ PageIterator::PageIterator(PagedSpace* space, Mode mode) : space_(space) { ...@@ -133,8 +133,6 @@ PageIterator::PageIterator(PagedSpace* space, Mode mode) : space_(space) {
#endif #endif
stop_page_ = space->last_page_; stop_page_ = space->last_page_;
break; break;
default:
UNREACHABLE();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment