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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1329653003: [bindings] Club related constants for a runtime enabled flag in a single |if| block (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface2.cpp ('k') | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 12932 matching lines...) Expand 10 before | Expand all | Expand 10 after
12943 {"CONST_VALUE_19", 0, 4e9, V8DOMConfiguration::ConstantTypeDouble}, 12943 {"CONST_VALUE_19", 0, 4e9, V8DOMConfiguration::ConstantTypeDouble},
12944 {"CONST_VALUE_20", 0, 3.4e5, V8DOMConfiguration::ConstantTypeDouble}, 12944 {"CONST_VALUE_20", 0, 3.4e5, V8DOMConfiguration::ConstantTypeDouble},
12945 {"CONST_VALUE_21", 0, -1.3, V8DOMConfiguration::ConstantTypeDouble}, 12945 {"CONST_VALUE_21", 0, -1.3, V8DOMConfiguration::ConstantTypeDouble},
12946 {"CONST_VALUE_22", 0, -4e-9, V8DOMConfiguration::ConstantTypeDouble}, 12946 {"CONST_VALUE_22", 0, -4e-9, V8DOMConfiguration::ConstantTypeDouble},
12947 {"CONST_VALUE_23", 0, .123, V8DOMConfiguration::ConstantTypeDouble}, 12947 {"CONST_VALUE_23", 0, .123, V8DOMConfiguration::ConstantTypeDouble},
12948 {"CONST_VALUE_24", 0, 5E+4, V8DOMConfiguration::ConstantTypeDouble}, 12948 {"CONST_VALUE_24", 0, 5E+4, V8DOMConfiguration::ConstantTypeDouble},
12949 {"CONST_VALUE_25", 0, 1, V8DOMConfiguration::ConstantTypeFloat}, 12949 {"CONST_VALUE_25", 0, 1, V8DOMConfiguration::ConstantTypeFloat},
12950 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, 12950 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
12951 }; 12951 };
12952 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants)); 12952 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants));
12953 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12953 if (RuntimeEnabledFeatures::featureName1Enabled()) {
12954 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"FEATURE_ENABLED_CONST", 1, 0, V8DOMConfiguration::ConstantTypeShort}; 12954 static const V8DOMConfiguration::ConstantConfiguration constantFeature1E nabledConst1Configuration = {"FEATURE1_ENABLED_CONST1", 1, 0, V8DOMConfiguration ::ConstantTypeShort};
12955 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConfiguration); 12955 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst1Configuration);
12956 static const V8DOMConfiguration::ConstantConfiguration constantFeature1E nabledConst2Configuration = {"FEATURE1_ENABLED_CONST2", 2, 0, V8DOMConfiguration ::ConstantTypeShort};
12957 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst2Configuration);
12958 }
12959 if (RuntimeEnabledFeatures::featureName2Enabled()) {
12960 static const V8DOMConfiguration::ConstantConfiguration constantFeature2E nabledConst1Configuration = {"FEATURE2_ENABLED_CONST1", 3, 0, V8DOMConfiguration ::ConstantTypeShort};
12961 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst1Configuration);
12962 static const V8DOMConfiguration::ConstantConfiguration constantFeature2E nabledConst2Configuration = {"FEATURE2_ENABLED_CONST2", 4, 0, V8DOMConfiguration ::ConstantTypeShort};
12963 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst2Configuration);
12964 }
12965 if (RuntimeEnabledFeatures::featureName3Enabled()) {
12966 static const V8DOMConfiguration::ConstantConfiguration constantFeature3E nabledConst1Configuration = {"FEATURE3_ENABLED_CONST1", 5, 0, V8DOMConfiguration ::ConstantTypeShort};
12967 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature3EnabledConst1Configuration);
12956 } 12968 }
12957 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANT ConstantGetterCallback); 12969 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANT ConstantGetterCallback);
12958 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTCons tantGetterCallback); 12970 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTCons tantGetterCallback);
12959 static_assert(0 == TestObject::CONST_VALUE_0, "the value of TestObject_CONST _VALUE_0 does not match with implementation"); 12971 static_assert(0 == TestObject::CONST_VALUE_0, "the value of TestObject_CONST _VALUE_0 does not match with implementation");
12960 static_assert(1 == TestObject::CONST_VALUE_1, "the value of TestObject_CONST _VALUE_1 does not match with implementation"); 12972 static_assert(1 == TestObject::CONST_VALUE_1, "the value of TestObject_CONST _VALUE_1 does not match with implementation");
12961 static_assert(2 == TestObject::CONST_VALUE_2, "the value of TestObject_CONST _VALUE_2 does not match with implementation"); 12973 static_assert(2 == TestObject::CONST_VALUE_2, "the value of TestObject_CONST _VALUE_2 does not match with implementation");
12962 static_assert(4 == TestObject::CONST_VALUE_4, "the value of TestObject_CONST _VALUE_4 does not match with implementation"); 12974 static_assert(4 == TestObject::CONST_VALUE_4, "the value of TestObject_CONST _VALUE_4 does not match with implementation");
12963 static_assert(8 == TestObject::CONST_VALUE_8, "the value of TestObject_CONST _VALUE_8 does not match with implementation"); 12975 static_assert(8 == TestObject::CONST_VALUE_8, "the value of TestObject_CONST _VALUE_8 does not match with implementation");
12964 static_assert(-1 == TestObject::CONST_VALUE_9, "the value of TestObject_CONS T_VALUE_9 does not match with implementation"); 12976 static_assert(-1 == TestObject::CONST_VALUE_9, "the value of TestObject_CONS T_VALUE_9 does not match with implementation");
12965 static_assert(0xffffffff == TestObject::CONST_VALUE_11, "the value of TestOb ject_CONST_VALUE_11 does not match with implementation"); 12977 static_assert(0xffffffff == TestObject::CONST_VALUE_11, "the value of TestOb ject_CONST_VALUE_11 does not match with implementation");
12966 static_assert(0x01 == TestObject::CONST_VALUE_12, "the value of TestObject_C ONST_VALUE_12 does not match with implementation"); 12978 static_assert(0x01 == TestObject::CONST_VALUE_12, "the value of TestObject_C ONST_VALUE_12 does not match with implementation");
12967 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C ONST_VALUE_13 does not match with implementation"); 12979 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C ONST_VALUE_13 does not match with implementation");
12968 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation"); 12980 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation");
12969 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation"); 12981 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation");
12970 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation"); 12982 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation");
12971 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation"); 12983 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation");
12972 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation"); 12984 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation");
12973 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation"); 12985 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation");
12974 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation"); 12986 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation");
12975 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation"); 12987 static_assert(1 == TestObject::FEATURE1_ENABLED_CONST1, "the value of TestOb ject_FEATURE1_ENABLED_CONST1 does not match with implementation");
12988 static_assert(2 == TestObject::FEATURE1_ENABLED_CONST2, "the value of TestOb ject_FEATURE1_ENABLED_CONST2 does not match with implementation");
12989 static_assert(3 == TestObject::FEATURE2_ENABLED_CONST1, "the value of TestOb ject_FEATURE2_ENABLED_CONST1 does not match with implementation");
12990 static_assert(4 == TestObject::FEATURE2_ENABLED_CONST2, "the value of TestOb ject_FEATURE2_ENABLED_CONST2 does not match with implementation");
12991 static_assert(5 == TestObject::FEATURE3_ENABLED_CONST1, "the value of TestOb ject_FEATURE3_ENABLED_CONST1 does not match with implementation");
12976 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation"); 12992 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
12977 { 12993 {
12978 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>); 12994 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>);
12979 functionTemplate->InstanceTemplate()->SetHandler(config); 12995 functionTemplate->InstanceTemplate()->SetHandler(config);
12980 } 12996 }
12981 { 12997 {
12982 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings); 12998 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
12983 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); 12999 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
12984 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback, v8::Hand le<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); 13000 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback, v8::Hand le<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
12985 functionTemplate->InstanceTemplate()->SetHandler(config); 13001 functionTemplate->InstanceTemplate()->SetHandler(config);
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
13596 ScriptState::Scope scope(scriptState); 13612 ScriptState::Scope scope(scriptState);
13597 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13613 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13598 if (holder.IsEmpty()) 13614 if (holder.IsEmpty())
13599 return false; 13615 return false;
13600 13616
13601 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13617 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13602 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13618 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13603 } 13619 }
13604 13620
13605 } // namespace blink 13621 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface2.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698