Index: src/compiler/control-builders.h |
diff --git a/src/compiler/control-builders.h b/src/compiler/control-builders.h |
index 4b5fc3ab1d3fe83e4016ee3fe5315df44afad0e1..1349cbac1e962bc132dc430f28d9cfa0bc4cc06e 100644 |
--- a/src/compiler/control-builders.h |
+++ b/src/compiler/control-builders.h |
@@ -110,13 +110,13 @@ class SwitchBuilder : public ControlBuilder { |
virtual void Break(); |
// The number of cases within a switch is statically known. |
- int case_count() const { return body_environments_.capacity(); } |
+ size_t case_count() const { return body_environments_.size(); } |
private: |
Environment* body_environment_; // Environment after last case body. |
Environment* label_environment_; // Environment for next label condition. |
Environment* break_environment_; // Environment after the switch exits. |
- ZoneList<Environment*> body_environments_; |
+ ZoneVector<Environment*> body_environments_; |
}; |