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 5319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5330 CONVERT_SMI_ARG_CHECKED(unchecked_attributes, 3); | 5330 CONVERT_SMI_ARG_CHECKED(unchecked_attributes, 3); |
5331 RUNTIME_ASSERT( | 5331 RUNTIME_ASSERT( |
5332 (unchecked_attributes & ~(READ_ONLY | DONT_ENUM | DONT_DELETE)) == 0); | 5332 (unchecked_attributes & ~(READ_ONLY | DONT_ENUM | DONT_DELETE)) == 0); |
5333 // Compute attributes. | 5333 // Compute attributes. |
5334 PropertyAttributes attributes = | 5334 PropertyAttributes attributes = |
5335 static_cast<PropertyAttributes>(unchecked_attributes); | 5335 static_cast<PropertyAttributes>(unchecked_attributes); |
5336 | 5336 |
5337 #ifdef DEBUG | 5337 #ifdef DEBUG |
5338 if (key->IsName()) { | 5338 if (key->IsName()) { |
5339 LookupIterator it(object, Handle<Name>::cast(key), | 5339 LookupIterator it(object, Handle<Name>::cast(key), |
5340 LookupIterator::CHECK_OWN); | 5340 LookupIterator::CHECK_OWN_REAL); |
5341 JSReceiver::GetPropertyAttributes(&it); | 5341 JSReceiver::GetPropertyAttributes(&it); |
5342 RUNTIME_ASSERT(!it.IsFound()); | 5342 RUNTIME_ASSERT(!it.IsFound()); |
5343 } else { | 5343 } else { |
5344 uint32_t index = 0; | 5344 uint32_t index = 0; |
5345 RUNTIME_ASSERT(key->ToArrayIndex(&index)); | 5345 RUNTIME_ASSERT(key->ToArrayIndex(&index)); |
5346 RUNTIME_ASSERT(!JSReceiver::HasOwnElement(object, index)); | 5346 RUNTIME_ASSERT(!JSReceiver::HasOwnElement(object, index)); |
5347 } | 5347 } |
5348 #endif | 5348 #endif |
5349 | 5349 |
5350 Handle<Object> result; | 5350 Handle<Object> result; |
(...skipping 9731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15082 } | 15082 } |
15083 return NULL; | 15083 return NULL; |
15084 } | 15084 } |
15085 | 15085 |
15086 | 15086 |
15087 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15087 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15088 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15088 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15089 } | 15089 } |
15090 | 15090 |
15091 } } // namespace v8::internal | 15091 } } // namespace v8::internal |
OLD | NEW |