| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |