OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
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 10909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10920 return isolate->heap()->undefined_value(); | 10920 return isolate->heap()->undefined_value(); |
10921 } | 10921 } |
10922 | 10922 |
10923 | 10923 |
10924 static Handle<Object> DebugGetProperty(LookupIterator* it, | 10924 static Handle<Object> DebugGetProperty(LookupIterator* it, |
10925 bool* has_caught = NULL) { | 10925 bool* has_caught = NULL) { |
10926 for (; it->IsFound(); it->Next()) { | 10926 for (; it->IsFound(); it->Next()) { |
10927 switch (it->state()) { | 10927 switch (it->state()) { |
10928 case LookupIterator::NOT_FOUND: | 10928 case LookupIterator::NOT_FOUND: |
10929 case LookupIterator::TRANSITION: | 10929 case LookupIterator::TRANSITION: |
10930 case LookupIterator::UNKNOWN: | |
10931 UNREACHABLE(); | 10930 UNREACHABLE(); |
10932 case LookupIterator::ACCESS_CHECK: | 10931 case LookupIterator::ACCESS_CHECK: |
10933 // Ignore access checks. | 10932 // Ignore access checks. |
10934 break; | 10933 break; |
10935 case LookupIterator::INTERCEPTOR: | 10934 case LookupIterator::INTERCEPTOR: |
10936 case LookupIterator::JSPROXY: | 10935 case LookupIterator::JSPROXY: |
10937 return it->isolate()->factory()->undefined_value(); | 10936 return it->isolate()->factory()->undefined_value(); |
10938 case LookupIterator::ACCESSOR: { | 10937 case LookupIterator::ACCESSOR: { |
10939 Handle<Object> accessors = it->GetAccessors(); | 10938 Handle<Object> accessors = it->GetAccessors(); |
10940 if (!accessors->IsAccessorInfo()) { | 10939 if (!accessors->IsAccessorInfo()) { |
(...skipping 4740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15681 } | 15680 } |
15682 return NULL; | 15681 return NULL; |
15683 } | 15682 } |
15684 | 15683 |
15685 | 15684 |
15686 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15685 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15687 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15686 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15688 } | 15687 } |
15689 | 15688 |
15690 } } // namespace v8::internal | 15689 } } // namespace v8::internal |
OLD | NEW |