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

Side by Side Diff: src/objects.cc

Issue 1469883002: Allow in-object properties in JSFunctions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/scavenger.cc ('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 11942 matching lines...) Expand 10 before | Expand all | Expand 10 after
11953 case JS_GENERATOR_OBJECT_TYPE: 11953 case JS_GENERATOR_OBJECT_TYPE:
11954 case JS_MODULE_TYPE: 11954 case JS_MODULE_TYPE:
11955 case JS_VALUE_TYPE: 11955 case JS_VALUE_TYPE:
11956 case JS_DATE_TYPE: 11956 case JS_DATE_TYPE:
11957 case JS_ARRAY_TYPE: 11957 case JS_ARRAY_TYPE:
11958 case JS_MESSAGE_OBJECT_TYPE: 11958 case JS_MESSAGE_OBJECT_TYPE:
11959 case JS_SET_ITERATOR_TYPE: 11959 case JS_SET_ITERATOR_TYPE:
11960 case JS_MAP_ITERATOR_TYPE: 11960 case JS_MAP_ITERATOR_TYPE:
11961 case JS_ITERATOR_RESULT_TYPE: 11961 case JS_ITERATOR_RESULT_TYPE:
11962 case JS_PROMISE_TYPE: 11962 case JS_PROMISE_TYPE:
11963 case JS_FUNCTION_TYPE:
11963 return true; 11964 return true;
11964 11965
11965 case JS_TYPED_ARRAY_TYPE: 11966 case JS_TYPED_ARRAY_TYPE:
11966 case JS_DATA_VIEW_TYPE: 11967 case JS_DATA_VIEW_TYPE:
11967 case JS_REGEXP_TYPE: 11968 case JS_REGEXP_TYPE:
11968 case JS_SET_TYPE: 11969 case JS_SET_TYPE:
11969 case JS_MAP_TYPE: 11970 case JS_MAP_TYPE:
11970 case JS_PROXY_TYPE: 11971 case JS_PROXY_TYPE:
11971 case JS_FUNCTION_PROXY_TYPE: 11972 case JS_FUNCTION_PROXY_TYPE:
11972 case JS_WEAK_MAP_TYPE: 11973 case JS_WEAK_MAP_TYPE:
11973 case JS_WEAK_SET_TYPE: 11974 case JS_WEAK_SET_TYPE:
11974 case JS_ARRAY_BUFFER_TYPE: 11975 case JS_ARRAY_BUFFER_TYPE:
11975 case JS_FUNCTION_TYPE:
11976 return false; 11976 return false;
11977 11977
11978 case JS_GLOBAL_PROXY_TYPE: 11978 case JS_GLOBAL_PROXY_TYPE:
11979 case JS_GLOBAL_OBJECT_TYPE: 11979 case JS_GLOBAL_OBJECT_TYPE:
11980 case FIXED_ARRAY_TYPE: 11980 case FIXED_ARRAY_TYPE:
11981 case FIXED_DOUBLE_ARRAY_TYPE: 11981 case FIXED_DOUBLE_ARRAY_TYPE:
11982 case ODDBALL_TYPE: 11982 case ODDBALL_TYPE:
11983 case FOREIGN_TYPE: 11983 case FOREIGN_TYPE:
11984 case MAP_TYPE: 11984 case MAP_TYPE:
11985 case CODE_TYPE: 11985 case CODE_TYPE:
(...skipping 6426 matching lines...) Expand 10 before | Expand all | Expand 10 after
18412 if (cell->value() != *new_value) { 18412 if (cell->value() != *new_value) {
18413 cell->set_value(*new_value); 18413 cell->set_value(*new_value);
18414 Isolate* isolate = cell->GetIsolate(); 18414 Isolate* isolate = cell->GetIsolate();
18415 cell->dependent_code()->DeoptimizeDependentCodeGroup( 18415 cell->dependent_code()->DeoptimizeDependentCodeGroup(
18416 isolate, DependentCode::kPropertyCellChangedGroup); 18416 isolate, DependentCode::kPropertyCellChangedGroup);
18417 } 18417 }
18418 } 18418 }
18419 18419
18420 } // namespace internal 18420 } // namespace internal
18421 } // namespace v8 18421 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/scavenger.cc ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698