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

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: REBASE 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
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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 HValue* old_capacity); 1264 HValue* old_capacity);
1265 1265
1266 void BuildNewSpaceArrayCheck(HValue* length, 1266 void BuildNewSpaceArrayCheck(HValue* length,
1267 ElementsKind kind); 1267 ElementsKind kind);
1268 1268
1269 class JSArrayBuilder { 1269 class JSArrayBuilder {
1270 public: 1270 public:
1271 JSArrayBuilder(HGraphBuilder* builder, 1271 JSArrayBuilder(HGraphBuilder* builder,
1272 ElementsKind kind, 1272 ElementsKind kind,
1273 HValue* allocation_site_payload, 1273 HValue* allocation_site_payload,
1274 HValue* constructor_function,
1274 bool disable_allocation_sites); 1275 bool disable_allocation_sites);
1275 1276
1276 JSArrayBuilder(HGraphBuilder* builder, 1277 JSArrayBuilder(HGraphBuilder* builder,
1277 ElementsKind kind, 1278 ElementsKind kind,
1278 HValue* constructor_function); 1279 HValue* constructor_function);
1279 1280
1280 HValue* AllocateEmptyArray(); 1281 HValue* AllocateEmptyArray();
1281 HValue* AllocateArray(HValue* capacity, HValue* length_field, 1282 HValue* AllocateArray(HValue* capacity, HValue* length_field,
1282 bool fill_with_hole); 1283 bool fill_with_hole);
1283 HValue* GetElementsLocation() { return elements_location_; } 1284 HValue* GetElementsLocation() { return elements_location_; }
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 EmbeddedVector<char, 64> filename_; 2048 EmbeddedVector<char, 64> filename_;
2048 HeapStringAllocator string_allocator_; 2049 HeapStringAllocator string_allocator_;
2049 StringStream trace_; 2050 StringStream trace_;
2050 int indent_; 2051 int indent_;
2051 }; 2052 };
2052 2053
2053 2054
2054 } } // namespace v8::internal 2055 } } // namespace v8::internal
2055 2056
2056 #endif // V8_HYDROGEN_H_ 2057 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698