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

Side by Side Diff: src/objects.cc

Issue 1480873003: Introduce instance type for transition arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix zapping Created 5 years 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/objects.h ('k') | src/objects-body-descriptors-inl.h » ('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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 case FIXED_DOUBLE_ARRAY_TYPE: 1936 case FIXED_DOUBLE_ARRAY_TYPE:
1937 os << "<FixedDoubleArray[" << FixedDoubleArray::cast(this)->length() 1937 os << "<FixedDoubleArray[" << FixedDoubleArray::cast(this)->length()
1938 << "]>"; 1938 << "]>";
1939 break; 1939 break;
1940 case BYTE_ARRAY_TYPE: 1940 case BYTE_ARRAY_TYPE:
1941 os << "<ByteArray[" << ByteArray::cast(this)->length() << "]>"; 1941 os << "<ByteArray[" << ByteArray::cast(this)->length() << "]>";
1942 break; 1942 break;
1943 case BYTECODE_ARRAY_TYPE: 1943 case BYTECODE_ARRAY_TYPE:
1944 os << "<BytecodeArray[" << BytecodeArray::cast(this)->length() << "]>"; 1944 os << "<BytecodeArray[" << BytecodeArray::cast(this)->length() << "]>";
1945 break; 1945 break;
1946 case TRANSITION_ARRAY_TYPE:
1947 os << "<TransitionArray[" << TransitionArray::cast(this)->length()
1948 << "]>";
1949 break;
1946 case FREE_SPACE_TYPE: 1950 case FREE_SPACE_TYPE:
1947 os << "<FreeSpace[" << FreeSpace::cast(this)->size() << "]>"; 1951 os << "<FreeSpace[" << FreeSpace::cast(this)->size() << "]>";
1948 break; 1952 break;
1949 #define TYPED_ARRAY_SHORT_PRINT(Type, type, TYPE, ctype, size) \ 1953 #define TYPED_ARRAY_SHORT_PRINT(Type, type, TYPE, ctype, size) \
1950 case FIXED_##TYPE##_ARRAY_TYPE: \ 1954 case FIXED_##TYPE##_ARRAY_TYPE: \
1951 os << "<Fixed" #Type "Array[" << Fixed##Type##Array::cast(this)->length() \ 1955 os << "<Fixed" #Type "Array[" << Fixed##Type##Array::cast(this)->length() \
1952 << "]>"; \ 1956 << "]>"; \
1953 break; 1957 break;
1954 1958
1955 TYPED_ARRAYS(TYPED_ARRAY_SHORT_PRINT) 1959 TYPED_ARRAYS(TYPED_ARRAY_SHORT_PRINT)
(...skipping 16691 matching lines...) Expand 10 before | Expand all | Expand 10 after
18647 if (cell->value() != *new_value) { 18651 if (cell->value() != *new_value) {
18648 cell->set_value(*new_value); 18652 cell->set_value(*new_value);
18649 Isolate* isolate = cell->GetIsolate(); 18653 Isolate* isolate = cell->GetIsolate();
18650 cell->dependent_code()->DeoptimizeDependentCodeGroup( 18654 cell->dependent_code()->DeoptimizeDependentCodeGroup(
18651 isolate, DependentCode::kPropertyCellChangedGroup); 18655 isolate, DependentCode::kPropertyCellChangedGroup);
18652 } 18656 }
18653 } 18657 }
18654 18658
18655 } // namespace internal 18659 } // namespace internal
18656 } // namespace v8 18660 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698