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

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

Issue 797283005: replace COMPILE_ASSERT with static_assert in bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 10996 matching lines...) Expand 10 before | Expand all | Expand 10 after
11007 {"CONST_VALUE_25", 0, 1, 0, V8DOMConfiguration::ConstantTypeFloat}, 11007 {"CONST_VALUE_25", 0, 1, 0, V8DOMConfiguration::ConstantTypeFloat},
11008 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 11008 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort},
11009 }; 11009 };
11010 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants)); 11010 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants));
11011 if (RuntimeEnabledFeatures::featureNameEnabled()) { 11011 if (RuntimeEnabledFeatures::featureNameEnabled()) {
11012 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"FEATURE_ENABLED_CONST", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort} ; 11012 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"FEATURE_ENABLED_CONST", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort} ;
11013 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototyp eTemplate, &constantConfiguration, 1); 11013 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototyp eTemplate, &constantConfiguration, 1);
11014 } 11014 }
11015 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemp late, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANTConstantGe tterCallback); 11015 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemp late, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANTConstantGe tterCallback);
11016 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemp late, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTConstantGetter Callback); 11016 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemp late, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTConstantGetter Callback);
11017 COMPILE_ASSERT(0 == TestObject::CONST_VALUE_0, TheValueOfTestObject_CONST_VA LUE_0DoesntMatchWithImplementation); 11017 static_assert(0 == TestObject::CONST_VALUE_0, "the value of TestObject_CONST _VALUE_0 does not match with implementation");
11018 COMPILE_ASSERT(1 == TestObject::CONST_VALUE_1, TheValueOfTestObject_CONST_VA LUE_1DoesntMatchWithImplementation); 11018 static_assert(1 == TestObject::CONST_VALUE_1, "the value of TestObject_CONST _VALUE_1 does not match with implementation");
11019 COMPILE_ASSERT(2 == TestObject::CONST_VALUE_2, TheValueOfTestObject_CONST_VA LUE_2DoesntMatchWithImplementation); 11019 static_assert(2 == TestObject::CONST_VALUE_2, "the value of TestObject_CONST _VALUE_2 does not match with implementation");
11020 COMPILE_ASSERT(4 == TestObject::CONST_VALUE_4, TheValueOfTestObject_CONST_VA LUE_4DoesntMatchWithImplementation); 11020 static_assert(4 == TestObject::CONST_VALUE_4, "the value of TestObject_CONST _VALUE_4 does not match with implementation");
11021 COMPILE_ASSERT(8 == TestObject::CONST_VALUE_8, TheValueOfTestObject_CONST_VA LUE_8DoesntMatchWithImplementation); 11021 static_assert(8 == TestObject::CONST_VALUE_8, "the value of TestObject_CONST _VALUE_8 does not match with implementation");
11022 COMPILE_ASSERT(-1 == TestObject::CONST_VALUE_9, TheValueOfTestObject_CONST_V ALUE_9DoesntMatchWithImplementation); 11022 static_assert(-1 == TestObject::CONST_VALUE_9, "the value of TestObject_CONS T_VALUE_9 does not match with implementation");
11023 COMPILE_ASSERT(0xffffffff == TestObject::CONST_VALUE_11, TheValueOfTestObjec t_CONST_VALUE_11DoesntMatchWithImplementation); 11023 static_assert(0xffffffff == TestObject::CONST_VALUE_11, "the value of TestOb ject_CONST_VALUE_11 does not match with implementation");
11024 COMPILE_ASSERT(0x01 == TestObject::CONST_VALUE_12, TheValueOfTestObject_CONS T_VALUE_12DoesntMatchWithImplementation); 11024 static_assert(0x01 == TestObject::CONST_VALUE_12, "the value of TestObject_C ONST_VALUE_12 does not match with implementation");
11025 COMPILE_ASSERT(0X20 == TestObject::CONST_VALUE_13, TheValueOfTestObject_CONS T_VALUE_13DoesntMatchWithImplementation); 11025 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C ONST_VALUE_13 does not match with implementation");
11026 COMPILE_ASSERT(0x1abc == TestObject::CONST_VALUE_14, TheValueOfTestObject_CO NST_VALUE_14DoesntMatchWithImplementation); 11026 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation");
11027 COMPILE_ASSERT(010 == TestObject::CONST_VALUE_15, TheValueOfTestObject_CONST _VALUE_15DoesntMatchWithImplementation); 11027 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation");
11028 COMPILE_ASSERT(-010 == TestObject::CONST_VALUE_16, TheValueOfTestObject_CONS T_VALUE_16DoesntMatchWithImplementation); 11028 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation");
11029 COMPILE_ASSERT(-0x1A == TestObject::CONST_VALUE_16, TheValueOfTestObject_CON ST_VALUE_16DoesntMatchWithImplementation); 11029 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation");
11030 COMPILE_ASSERT(-0X1a == TestObject::CONST_VALUE_17, TheValueOfTestObject_CON ST_VALUE_17DoesntMatchWithImplementation); 11030 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation");
11031 COMPILE_ASSERT(1 == TestObject::DEPRECATED_CONSTANT, TheValueOfTestObject_DE PRECATED_CONSTANTDoesntMatchWithImplementation); 11031 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation");
11032 COMPILE_ASSERT(1 == TestObject::MEASURED_CONSTANT, TheValueOfTestObject_MEAS URED_CONSTANTDoesntMatchWithImplementation); 11032 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation");
11033 COMPILE_ASSERT(1 == TestObject::FEATURE_ENABLED_CONST, TheValueOfTestObject_ FEATURE_ENABLED_CONSTDoesntMatchWithImplementation); 11033 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation");
11034 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD oesntMatchWithImplementation); 11034 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
11035 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = { 11035 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = {
11036 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts, 11036 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts,
11037 }; 11037 };
11038 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticVoidMethodMethodConfiguration, isolate); 11038 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticVoidMethodMethodConfiguration, isolate);
11039 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = { 11039 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = {
11040 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 11040 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
11041 }; 11041 };
11042 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, overloadedStaticMethodMethodConfiguration, isolate); 11042 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, overloadedStaticMethodMethodConfiguration, isolate);
11043 #if ENABLE(CONDITION) 11043 #if ENABLE(CONDITION)
11044 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid MethodMethodConfiguration = { 11044 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid MethodMethodConfiguration = {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
11610 return false; 11610 return false;
11611 11611
11612 ScriptState::Scope scope(scriptState); 11612 ScriptState::Scope scope(scriptState);
11613 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11613 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11614 11614
11615 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11615 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11616 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11616 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11617 } 11617 }
11618 11618
11619 } // namespace blink 11619 } // 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