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

Side by Side Diff: src/api.cc

Issue 469733002: Rename the configuration flags of the LookupIterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | src/bootstrapper.cc » ('j') | 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 "src/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 3549 matching lines...) Expand 10 before | Expand all | Expand 10 after
3560 i::Handle<i::String> name, 3560 i::Handle<i::String> name,
3561 i::LookupResult* lookup) { 3561 i::LookupResult* lookup) {
3562 if (!lookup->IsProperty()) { 3562 if (!lookup->IsProperty()) {
3563 // No real property was found. 3563 // No real property was found.
3564 return Local<Value>(); 3564 return Local<Value>();
3565 } 3565 }
3566 3566
3567 // If the property being looked up is a callback, it can throw 3567 // If the property being looked up is a callback, it can throw
3568 // an exception. 3568 // an exception.
3569 EXCEPTION_PREAMBLE(isolate); 3569 EXCEPTION_PREAMBLE(isolate);
3570 i::LookupIterator it( 3570 i::LookupIterator it(receiver, name,
3571 receiver, name, i::Handle<i::JSReceiver>(lookup->holder(), isolate), 3571 i::Handle<i::JSReceiver>(lookup->holder(), isolate),
3572 i::LookupIterator::SKIP_INTERCEPTOR); 3572 i::LookupIterator::CHECK_DERIVED_SKIP_INTERCEPTOR);
3573 i::Handle<i::Object> result; 3573 i::Handle<i::Object> result;
3574 has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result); 3574 has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result);
3575 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); 3575 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>());
3576 3576
3577 return Utils::ToLocal(result); 3577 return Utils::ToLocal(result);
3578 } 3578 }
3579 3579
3580 3580
3581 Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain( 3581 Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain(
3582 Handle<String> key) { 3582 Handle<String> key) {
(...skipping 4048 matching lines...) Expand 10 before | Expand all | Expand 10 after
7631 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7631 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7632 Address callback_address = 7632 Address callback_address =
7633 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7633 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7634 VMState<EXTERNAL> state(isolate); 7634 VMState<EXTERNAL> state(isolate);
7635 ExternalCallbackScope call_scope(isolate, callback_address); 7635 ExternalCallbackScope call_scope(isolate, callback_address);
7636 callback(info); 7636 callback(info);
7637 } 7637 }
7638 7638
7639 7639
7640 } } // namespace v8::internal 7640 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698