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

Side by Side Diff: src/objects.cc

Issue 1176263004: Introduce a base pointer field in FixedTypedArrayBase and teach GC about it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 break; 1471 break;
1472 1472
1473 case HEAP_NUMBER_TYPE: 1473 case HEAP_NUMBER_TYPE:
1474 case MUTABLE_HEAP_NUMBER_TYPE: 1474 case MUTABLE_HEAP_NUMBER_TYPE:
1475 case FLOAT32X4_TYPE: 1475 case FLOAT32X4_TYPE:
1476 case FILLER_TYPE: 1476 case FILLER_TYPE:
1477 case BYTE_ARRAY_TYPE: 1477 case BYTE_ARRAY_TYPE:
1478 case FREE_SPACE_TYPE: 1478 case FREE_SPACE_TYPE:
1479 break; 1479 break;
1480 1480
1481 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 1481 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
1482 case EXTERNAL_##TYPE##_ARRAY_TYPE: \ 1482 case EXTERNAL_##TYPE##_ARRAY_TYPE: \
1483 case FIXED_##TYPE##_ARRAY_TYPE: \ 1483 break; \
1484 break; 1484 \
1485 case FIXED_##TYPE##_ARRAY_TYPE: \
1486 reinterpret_cast<FixedTypedArrayBase*>(this) \
1487 ->FixedTypedArrayBaseIterateBody(v); \
1488 break;
1489
1485 1490
1486 TYPED_ARRAYS(TYPED_ARRAY_CASE) 1491 TYPED_ARRAYS(TYPED_ARRAY_CASE)
1487 #undef TYPED_ARRAY_CASE 1492 #undef TYPED_ARRAY_CASE
1488 1493
1489 case SHARED_FUNCTION_INFO_TYPE: { 1494 case SHARED_FUNCTION_INFO_TYPE: {
1490 SharedFunctionInfo::BodyDescriptor::IterateBody(this, v); 1495 SharedFunctionInfo::BodyDescriptor::IterateBody(this, v);
1491 break; 1496 break;
1492 } 1497 }
1493 1498
1494 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 1499 #define MAKE_STRUCT_CASE(NAME, Name, name) \
(...skipping 15132 matching lines...) Expand 10 before | Expand all | Expand 10 after
16627 Handle<Object> new_value) { 16632 Handle<Object> new_value) {
16628 if (cell->value() != *new_value) { 16633 if (cell->value() != *new_value) {
16629 cell->set_value(*new_value); 16634 cell->set_value(*new_value);
16630 Isolate* isolate = cell->GetIsolate(); 16635 Isolate* isolate = cell->GetIsolate();
16631 cell->dependent_code()->DeoptimizeDependentCodeGroup( 16636 cell->dependent_code()->DeoptimizeDependentCodeGroup(
16632 isolate, DependentCode::kPropertyCellChangedGroup); 16637 isolate, DependentCode::kPropertyCellChangedGroup);
16633 } 16638 }
16634 } 16639 }
16635 } // namespace internal 16640 } // namespace internal
16636 } // namespace v8 16641 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698