Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: src/ast.h

Issue 9616014: Improve polymorphic loads on single slots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamed CheckMap to CheckMaps. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698