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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |