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

Side by Side Diff: src/objects.cc

Issue 1497483004: [proxies] Make Array.isArray respect proxies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 THROW_NEW_ERROR(isolate, 976 THROW_NEW_ERROR(isolate,
977 NewTypeError(MessageTemplate::kProxyHandlerTrapMissing, 977 NewTypeError(MessageTemplate::kProxyHandlerTrapMissing,
978 handler, trap_name), 978 handler, trap_name),
979 Object); 979 Object);
980 } 980 }
981 // 13. Return handlerProto. 981 // 13. Return handlerProto.
982 return handler_proto; 982 return handler_proto;
983 } 983 }
984 984
985 985
986 bool JSProxy::IsRevoked() { 986 bool JSProxy::IsRevoked() const {
987 // TODO(neis): Decide on how to represent revocation. For now, revocation is 987 // TODO(neis): Decide on how to represent revocation. For now, revocation is
988 // unsupported. 988 // unsupported.
989 DCHECK(target()->IsJSReceiver()); 989 DCHECK(target()->IsJSReceiver());
990 DCHECK(handler()->IsJSReceiver()); 990 DCHECK(handler()->IsJSReceiver());
991 return false; 991 return false;
992 } 992 }
993 993
994 994
995 MaybeHandle<Object> Object::GetPropertyWithAccessor( 995 MaybeHandle<Object> Object::GetPropertyWithAccessor(
996 LookupIterator* it, LanguageMode language_mode) { 996 LookupIterator* it, LanguageMode language_mode) {
(...skipping 18058 matching lines...) Expand 10 before | Expand all | Expand 10 after
19055 if (cell->value() != *new_value) { 19055 if (cell->value() != *new_value) {
19056 cell->set_value(*new_value); 19056 cell->set_value(*new_value);
19057 Isolate* isolate = cell->GetIsolate(); 19057 Isolate* isolate = cell->GetIsolate();
19058 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19058 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19059 isolate, DependentCode::kPropertyCellChangedGroup); 19059 isolate, DependentCode::kPropertyCellChangedGroup);
19060 } 19060 }
19061 } 19061 }
19062 19062
19063 } // namespace internal 19063 } // namespace internal
19064 } // namespace v8 19064 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698