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

Side by Side Diff: src/runtime.cc

Issue 353143003: Cannot check the interceptor since it may not be ready yet. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698