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

Unified Diff: src/objects-inl.h

Issue 697603002: Optimized nodeType dom binding by removing HandleScope and the preparation of ordinary c function c… (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index b0996afb82e328fab772a53aaa05f7f3eeb3ddd6..5f8a991abd299976e9bc9939955c16bea75c5548 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6841,6 +6841,17 @@ bool AccessorInfo::IsCompatibleReceiver(Object* receiver) {
->IsTemplateFor(JSObject::cast(receiver)->map());
}
+bool AccessorInfo::can_fast_call() {
+ int value = flag()->value();
+ return AccessorOptimizeLevel::decode(value);
+}
+
+void AccessorInfo::set_can_fast_call(bool fast_call) {
+ int value = flag()->value();
+ set_flag(
+ Smi::FromInt(AccessorOptimizeLevel::update(value, fast_call)),
+ SKIP_WRITE_BARRIER);
+}
void ExecutableAccessorInfo::clear_setter() {
set_setter(GetIsolate()->heap()->undefined_value(), SKIP_WRITE_BARRIER);
« no previous file with comments | « src/objects.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698