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

Side by Side Diff: src/objects.cc

Issue 1365803004: [presubmit] Fix whitespace/semicolon linter violations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/mips64/macro-assembler-mips64.cc ('k') | src/preparser.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 14668 matching lines...) Expand 10 before | Expand all | Expand 10 after
14679 } 14679 }
14680 DCHECK(object->HasFastSmiOrObjectElements() || 14680 DCHECK(object->HasFastSmiOrObjectElements() ||
14681 object->HasFastDoubleElements()); 14681 object->HasFastDoubleElements());
14682 14682
14683 // Collect holes at the end, undefined before that and the rest at the 14683 // Collect holes at the end, undefined before that and the rest at the
14684 // start, and return the number of non-hole, non-undefined values. 14684 // start, and return the number of non-hole, non-undefined values.
14685 14685
14686 Handle<FixedArrayBase> elements_base(object->elements()); 14686 Handle<FixedArrayBase> elements_base(object->elements());
14687 uint32_t elements_length = static_cast<uint32_t>(elements_base->length()); 14687 uint32_t elements_length = static_cast<uint32_t>(elements_base->length());
14688 if (limit > elements_length) { 14688 if (limit > elements_length) {
14689 limit = elements_length ; 14689 limit = elements_length;
14690 } 14690 }
14691 if (limit == 0) { 14691 if (limit == 0) {
14692 return handle(Smi::FromInt(0), isolate); 14692 return handle(Smi::FromInt(0), isolate);
14693 } 14693 }
14694 14694
14695 uint32_t result = 0; 14695 uint32_t result = 0;
14696 if (elements_base->map() == isolate->heap()->fixed_double_array_map()) { 14696 if (elements_base->map() == isolate->heap()->fixed_double_array_map()) {
14697 FixedDoubleArray* elements = FixedDoubleArray::cast(*elements_base); 14697 FixedDoubleArray* elements = FixedDoubleArray::cast(*elements_base);
14698 // Split elements into defined and the_hole, in that order. 14698 // Split elements into defined and the_hole, in that order.
14699 unsigned int holes = limit; 14699 unsigned int holes = limit;
(...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after
16745 if (cell->value() != *new_value) { 16745 if (cell->value() != *new_value) {
16746 cell->set_value(*new_value); 16746 cell->set_value(*new_value);
16747 Isolate* isolate = cell->GetIsolate(); 16747 Isolate* isolate = cell->GetIsolate();
16748 cell->dependent_code()->DeoptimizeDependentCodeGroup( 16748 cell->dependent_code()->DeoptimizeDependentCodeGroup(
16749 isolate, DependentCode::kPropertyCellChangedGroup); 16749 isolate, DependentCode::kPropertyCellChangedGroup);
16750 } 16750 }
16751 } 16751 }
16752 16752
16753 } // namespace internal 16753 } // namespace internal
16754 } // namespace v8 16754 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698