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

Side by Side Diff: src/api.cc

Issue 27518002: Handlify JSObject::HasReal*Property. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/objects.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after
3519 return false); 3519 return false);
3520 return i::JSReceiver::HasLocalProperty( 3520 return i::JSReceiver::HasLocalProperty(
3521 Utils::OpenHandle(this), Utils::OpenHandle(*key)); 3521 Utils::OpenHandle(this), Utils::OpenHandle(*key));
3522 } 3522 }
3523 3523
3524 3524
3525 bool v8::Object::HasRealNamedProperty(Handle<String> key) { 3525 bool v8::Object::HasRealNamedProperty(Handle<String> key) {
3526 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3526 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3527 ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()", 3527 ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()",
3528 return false); 3528 return false);
3529 return Utils::OpenHandle(this)->HasRealNamedProperty( 3529 return i::JSObject::HasRealNamedProperty(Utils::OpenHandle(this),
3530 isolate, 3530 Utils::OpenHandle(*key));
3531 *Utils::OpenHandle(*key));
3532 } 3531 }
3533 3532
3534 3533
3535 bool v8::Object::HasRealIndexedProperty(uint32_t index) { 3534 bool v8::Object::HasRealIndexedProperty(uint32_t index) {
3536 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3535 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3537 ON_BAILOUT(isolate, "v8::Object::HasRealIndexedProperty()", 3536 ON_BAILOUT(isolate, "v8::Object::HasRealIndexedProperty()",
3538 return false); 3537 return false);
3539 return Utils::OpenHandle(this)->HasRealElementProperty(isolate, index); 3538 return i::JSObject::HasRealElementProperty(Utils::OpenHandle(this), index);
3540 } 3539 }
3541 3540
3542 3541
3543 bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) { 3542 bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) {
3544 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3543 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3545 ON_BAILOUT(isolate, 3544 ON_BAILOUT(isolate,
3546 "v8::Object::HasRealNamedCallbackProperty()", 3545 "v8::Object::HasRealNamedCallbackProperty()",
3547 return false); 3546 return false);
3548 ENTER_V8(isolate); 3547 ENTER_V8(isolate);
3549 return Utils::OpenHandle(this)->HasRealNamedCallbackProperty( 3548 return i::JSObject::HasRealNamedCallbackProperty(Utils::OpenHandle(this),
3550 isolate, 3549 Utils::OpenHandle(*key));
3551 *Utils::OpenHandle(*key));
3552 } 3550 }
3553 3551
3554 3552
3555 bool v8::Object::HasNamedLookupInterceptor() { 3553 bool v8::Object::HasNamedLookupInterceptor() {
3556 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3554 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3557 ON_BAILOUT(isolate, "v8::Object::HasNamedLookupInterceptor()", 3555 ON_BAILOUT(isolate, "v8::Object::HasNamedLookupInterceptor()",
3558 return false); 3556 return false);
3559 return Utils::OpenHandle(this)->HasNamedInterceptor(); 3557 return Utils::OpenHandle(this)->HasNamedInterceptor();
3560 } 3558 }
3561 3559
(...skipping 3982 matching lines...) Expand 10 before | Expand all | Expand 10 after
7544 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7542 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7545 Address callback_address = 7543 Address callback_address =
7546 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7544 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7547 VMState<EXTERNAL> state(isolate); 7545 VMState<EXTERNAL> state(isolate);
7548 ExternalCallbackScope call_scope(isolate, callback_address); 7546 ExternalCallbackScope call_scope(isolate, callback_address);
7549 callback(info); 7547 callback(info);
7550 } 7548 }
7551 7549
7552 7550
7553 } } // namespace v8::internal 7551 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698