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

Side by Side Diff: src/hydrogen.h

Issue 16206007: Turn off allocation site info for crankshafted array constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 HValue* old_capacity); 1226 HValue* old_capacity);
1227 1227
1228 void BuildNewSpaceArrayCheck(HValue* length, 1228 void BuildNewSpaceArrayCheck(HValue* length,
1229 ElementsKind kind); 1229 ElementsKind kind);
1230 1230
1231 class JSArrayBuilder { 1231 class JSArrayBuilder {
1232 public: 1232 public:
1233 JSArrayBuilder(HGraphBuilder* builder, 1233 JSArrayBuilder(HGraphBuilder* builder,
1234 ElementsKind kind, 1234 ElementsKind kind,
1235 HValue* allocation_site_payload, 1235 HValue* allocation_site_payload,
1236 AllocationSiteMode mode); 1236 bool disable_allocation_sites);
1237 1237
1238 HValue* AllocateEmptyArray(); 1238 HValue* AllocateEmptyArray();
1239 HValue* AllocateArray(HValue* capacity, HValue* length_field, 1239 HValue* AllocateArray(HValue* capacity, HValue* length_field,
1240 bool fill_with_hole); 1240 bool fill_with_hole);
1241 HValue* GetElementsLocation() { return elements_location_; } 1241 HValue* GetElementsLocation() { return elements_location_; }
1242 1242
1243 private: 1243 private:
1244 Zone* zone() const { return builder_->zone(); } 1244 Zone* zone() const { return builder_->zone(); }
1245 int elements_size() const { 1245 int elements_size() const {
1246 return IsFastDoubleElementsKind(kind_) ? kDoubleSize : kPointerSize; 1246 return IsFastDoubleElementsKind(kind_) ? kDoubleSize : kPointerSize;
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 EmbeddedVector<char, 64> filename_; 1950 EmbeddedVector<char, 64> filename_;
1951 HeapStringAllocator string_allocator_; 1951 HeapStringAllocator string_allocator_;
1952 StringStream trace_; 1952 StringStream trace_;
1953 int indent_; 1953 int indent_;
1954 }; 1954 };
1955 1955
1956 1956
1957 } } // namespace v8::internal 1957 } } // namespace v8::internal
1958 1958
1959 #endif // V8_HYDROGEN_H_ 1959 #endif // V8_HYDROGEN_H_
OLDNEW
« src/code-stubs.h ('K') | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698