| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 break; | 819 break; |
| 820 } | 820 } |
| 821 case TEMPORARY: | 821 case TEMPORARY: |
| 822 case DYNAMIC: | 822 case DYNAMIC: |
| 823 case DYNAMIC_GLOBAL: | 823 case DYNAMIC_GLOBAL: |
| 824 case DYNAMIC_LOCAL: | 824 case DYNAMIC_LOCAL: |
| 825 UNREACHABLE(); | 825 UNREACHABLE(); |
| 826 } | 826 } |
| 827 } | 827 } |
| 828 | 828 |
| 829 if (JSObject::PreventExtensions(module, Object::THROW_ON_ERROR).IsNothing()) | 829 if (JSObject::PreventExtensions(module, Object::THROW_ON_ERROR) |
| 830 .IsNothing()) { |
| 830 DCHECK(false); | 831 DCHECK(false); |
| 832 } |
| 831 } | 833 } |
| 832 | 834 |
| 833 DCHECK(!isolate->has_pending_exception()); | 835 DCHECK(!isolate->has_pending_exception()); |
| 834 return isolate->heap()->undefined_value(); | 836 return isolate->heap()->undefined_value(); |
| 835 } | 837 } |
| 836 | 838 |
| 837 | 839 |
| 838 RUNTIME_FUNCTION(Runtime_DeleteLookupSlot) { | 840 RUNTIME_FUNCTION(Runtime_DeleteLookupSlot) { |
| 839 HandleScope scope(isolate); | 841 HandleScope scope(isolate); |
| 840 DCHECK(args.length() == 2); | 842 DCHECK(args.length() == 2); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 | 1130 |
| 1129 // Lookup in the initial Object.prototype object. | 1131 // Lookup in the initial Object.prototype object. |
| 1130 Handle<Object> result; | 1132 Handle<Object> result; |
| 1131 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 1133 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 1132 isolate, result, | 1134 isolate, result, |
| 1133 Object::GetProperty(isolate->initial_object_prototype(), key)); | 1135 Object::GetProperty(isolate->initial_object_prototype(), key)); |
| 1134 return *result; | 1136 return *result; |
| 1135 } | 1137 } |
| 1136 } // namespace internal | 1138 } // namespace internal |
| 1137 } // namespace v8 | 1139 } // namespace v8 |
| OLD | NEW |