| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 | 264 |
| 265 class SmallMapList { | 265 class SmallMapList { |
| 266 public: | 266 public: |
| 267 SmallMapList() {} | 267 SmallMapList() {} |
| 268 explicit SmallMapList(int capacity) : list_(capacity) {} | 268 explicit SmallMapList(int capacity) : list_(capacity) {} |
| 269 | 269 |
| 270 void Reserve(int capacity) { list_.Reserve(capacity); } | 270 void Reserve(int capacity) { list_.Reserve(capacity); } |
| 271 void Clear() { list_.Clear(); } | 271 void Clear() { list_.Clear(); } |
| 272 void Sort() { list_.Sort(); } |
| 272 | 273 |
| 273 bool is_empty() const { return list_.is_empty(); } | 274 bool is_empty() const { return list_.is_empty(); } |
| 274 int length() const { return list_.length(); } | 275 int length() const { return list_.length(); } |
| 275 | 276 |
| 276 void Add(Handle<Map> handle) { | 277 void Add(Handle<Map> handle) { |
| 277 list_.Add(handle.location()); | 278 list_.Add(handle.location()); |
| 278 } | 279 } |
| 279 | 280 |
| 280 Handle<Map> at(int i) const { | 281 Handle<Map> at(int i) const { |
| 281 return Handle<Map>(list_.at(i)); | 282 return Handle<Map>(list_.at(i)); |
| (...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2932 private: | 2933 private: |
| 2933 Isolate* isolate_; | 2934 Isolate* isolate_; |
| 2934 Zone* zone_; | 2935 Zone* zone_; |
| 2935 Visitor visitor_; | 2936 Visitor visitor_; |
| 2936 }; | 2937 }; |
| 2937 | 2938 |
| 2938 | 2939 |
| 2939 } } // namespace v8::internal | 2940 } } // namespace v8::internal |
| 2940 | 2941 |
| 2941 #endif // V8_AST_H_ | 2942 #endif // V8_AST_H_ |
| OLD | NEW |