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

Side by Side Diff: src/objects-inl.h

Issue 851073002: Fix remaining issues in the custom snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix heap snapshot test expectation Created 5 years, 11 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
« no previous file with comments | « src/heap/heap.h ('k') | src/runtime/runtime-function.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6168 matching lines...) Expand 10 before | Expand all | Expand 10 after
6179 DCHECK(shared()->bound()); 6179 DCHECK(shared()->bound());
6180 return literals_or_bindings(); 6180 return literals_or_bindings();
6181 } 6181 }
6182 6182
6183 6183
6184 void JSFunction::set_function_bindings(FixedArray* bindings) { 6184 void JSFunction::set_function_bindings(FixedArray* bindings) {
6185 DCHECK(shared()->bound()); 6185 DCHECK(shared()->bound());
6186 // Bound function literal may be initialized to the empty fixed array 6186 // Bound function literal may be initialized to the empty fixed array
6187 // before the bindings are set. 6187 // before the bindings are set.
6188 DCHECK(bindings == GetHeap()->empty_fixed_array() || 6188 DCHECK(bindings == GetHeap()->empty_fixed_array() ||
6189 bindings->map() == GetHeap()->fixed_cow_array_map()); 6189 bindings->map() == GetHeap()->fixed_array_map());
6190 set_literals_or_bindings(bindings); 6190 set_literals_or_bindings(bindings);
6191 } 6191 }
6192 6192
6193 6193
6194 int JSFunction::NumberOfLiterals() { 6194 int JSFunction::NumberOfLiterals() {
6195 DCHECK(!shared()->bound()); 6195 DCHECK(!shared()->bound());
6196 return literals()->length(); 6196 return literals()->length();
6197 } 6197 }
6198 6198
6199 6199
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
7510 #undef READ_SHORT_FIELD 7510 #undef READ_SHORT_FIELD
7511 #undef WRITE_SHORT_FIELD 7511 #undef WRITE_SHORT_FIELD
7512 #undef READ_BYTE_FIELD 7512 #undef READ_BYTE_FIELD
7513 #undef WRITE_BYTE_FIELD 7513 #undef WRITE_BYTE_FIELD
7514 #undef NOBARRIER_READ_BYTE_FIELD 7514 #undef NOBARRIER_READ_BYTE_FIELD
7515 #undef NOBARRIER_WRITE_BYTE_FIELD 7515 #undef NOBARRIER_WRITE_BYTE_FIELD
7516 7516
7517 } } // namespace v8::internal 7517 } } // namespace v8::internal
7518 7518
7519 #endif // V8_OBJECTS_INL_H_ 7519 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698