From a762c8eed73365dedf4998389702c9c089237de5 Mon Sep 17 00:00:00 2001 From: "dglazkov@google.com" Date: Thu, 7 May 2009 22:15:23 +0000 Subject: Fix code generator to enable Database support. TBR=darin BUG=0 TEST=make build green. Review URL: http://codereview.chromium.org/113125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15590 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/build/V8Bindings/build-generated-files.sh | 2 +- webkit/port/bindings/scripts/CodeGeneratorV8.pm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/webkit/build/V8Bindings/build-generated-files.sh b/webkit/build/V8Bindings/build-generated-files.sh index 18328c1..beb8a0a 100755 --- a/webkit/build/V8Bindings/build-generated-files.sh +++ b/webkit/build/V8Bindings/build-generated-files.sh @@ -43,7 +43,7 @@ export ENCODINGS_PREFIX="" # To see what FEATURE_DEFINES Apple uses, look at: # webkit/third_party/WebCore/Configurations/WebCore.xcconfig -export FEATURE_DEFINES="ENABLE_SVG ENABLE_SVG_ANIMATION ENABLE_SVG_AS_IMAGE ENABLE_SVG_FONTS ENABLE_SVG_FOREIGN_OBJECT ENABLE_SVG_USE ENABLE_VIDEO ENABLE_WORKERS ENABLE_CHANNEL_MESSAGING ENABLE_XPATH ENABLE_XSLT" +export FEATURE_DEFINES="ENABLE_DATABASE ENABLE_SVG ENABLE_SVG_ANIMATION ENABLE_SVG_AS_IMAGE ENABLE_SVG_FONTS ENABLE_SVG_FOREIGN_OBJECT ENABLE_SVG_USE ENABLE_VIDEO ENABLE_WORKERS ENABLE_CHANNEL_MESSAGING ENABLE_XPATH ENABLE_XSLT" # Adjust the number of jobs spawned according to the CPU count. if [ -z "$NUMBER_OF_PROCESSORS" ]; then diff --git a/webkit/port/bindings/scripts/CodeGeneratorV8.pm b/webkit/port/bindings/scripts/CodeGeneratorV8.pm index 2afd27e..e1e0e18 100644 --- a/webkit/port/bindings/scripts/CodeGeneratorV8.pm +++ b/webkit/port/bindings/scripts/CodeGeneratorV8.pm @@ -4,7 +4,7 @@ # Copyright (C) 2006 Samuel Weinig # Copyright (C) 2006 Alexey Proskuryakov # Copyright (C) 2006 Apple Computer, Inc. -# Copyright (C) 2007 Google Inc. +# Copyright (C) 2007, 2008, 2009 Google Inc. # # This file is part of the KDE project # @@ -1620,6 +1620,7 @@ sub IsRefPtrType return 1 if $type eq "CSSStyleDeclaration"; return 1 if $type eq "CSSValue"; return 1 if $type eq "CSSRuleList"; + return 1 if $type eq "Database"; return 1 if $type eq "Document"; return 1 if $type eq "DocumentFragment"; return 1 if $type eq "DocumentType"; @@ -1694,6 +1695,7 @@ sub GetNativeType return $type } + return "int" if $type eq "int"; return "int" if $type eq "short" or $type eq "unsigned short"; return "int" if $type eq "long" or $type eq "unsigned long"; return "unsigned long long" if $type eq "unsigned long long"; @@ -1708,6 +1710,7 @@ sub GetNativeType return "double" if $type eq "SVGNumber"; return "SVGPaint::SVGPaintType" if $type eq "SVGPaintType"; return "DOMTimeStamp" if $type eq "DOMTimeStamp"; + return "unsigned" if $type eq "unsigned int"; return "unsigned" if $type eq "RGBColor"; return "Node*" if $type eq "EventTarget" and $isParameter; -- cgit v1.1