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

Side by Side Diff: src/hydrogen.h

Issue 17091002: Hydrogen array constructor cleanup and improvements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nit Created 7 years, 5 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/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 HValue* old_capacity); 1266 HValue* old_capacity);
1267 1267
1268 void BuildNewSpaceArrayCheck(HValue* length, 1268 void BuildNewSpaceArrayCheck(HValue* length,
1269 ElementsKind kind); 1269 ElementsKind kind);
1270 1270
1271 class JSArrayBuilder { 1271 class JSArrayBuilder {
1272 public: 1272 public:
1273 JSArrayBuilder(HGraphBuilder* builder, 1273 JSArrayBuilder(HGraphBuilder* builder,
1274 ElementsKind kind, 1274 ElementsKind kind,
1275 HValue* allocation_site_payload, 1275 HValue* allocation_site_payload,
1276 bool disable_allocation_sites); 1276 HValue* constructor_function,
1277 AllocationSiteOverrideMode override_mode);
1277 1278
1278 JSArrayBuilder(HGraphBuilder* builder, 1279 JSArrayBuilder(HGraphBuilder* builder,
1279 ElementsKind kind, 1280 ElementsKind kind,
1280 HValue* constructor_function); 1281 HValue* constructor_function);
1281 1282
1282 HValue* AllocateEmptyArray(); 1283 HValue* AllocateEmptyArray();
1283 HValue* AllocateArray(HValue* capacity, HValue* length_field, 1284 HValue* AllocateArray(HValue* capacity, HValue* length_field,
1284 bool fill_with_hole); 1285 bool fill_with_hole);
1285 HValue* GetElementsLocation() { return elements_location_; } 1286 HValue* GetElementsLocation() { return elements_location_; }
1286 1287
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 EmbeddedVector<char, 64> filename_; 2053 EmbeddedVector<char, 64> filename_;
2053 HeapStringAllocator string_allocator_; 2054 HeapStringAllocator string_allocator_;
2054 StringStream trace_; 2055 StringStream trace_;
2055 int indent_; 2056 int indent_;
2056 }; 2057 };
2057 2058
2058 2059
2059 } } // namespace v8::internal 2060 } } // namespace v8::internal
2060 2061
2061 #endif // V8_HYDROGEN_H_ 2062 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698