Use -O9, tune for nocoma, assume at least a Pentium when generating code.

Review URL: http://codereview.chromium.org/4298

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@387 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2008-09-26 15:53:42 +00:00
parent da96a860f0
commit aabe3ed736
2 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ LIBRARY_FLAGS = {
'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG']
},
'mode:release': {
'CCFLAGS': ['-O2']
'CCFLAGS': ['-O9', '-mtune=nocona', '-march=pentium']
},
'wordsize:64': {
'CCFLAGS': ['-m32'],
@ -188,7 +188,7 @@ SAMPLE_FLAGS = {
'LINKFLAGS': ['-m32']
},
'mode:release': {
'CCFLAGS': ['-O2']
'CCFLAGS': ['-O2', '-mtune=nocona', '-march=pentium']
},
'mode:debug': {
'CCFLAGS': ['-g', '-O0']

View File

@ -1691,7 +1691,7 @@ PropertyAttributes JSObject::GetPropertyAttributeWithInterceptor(
PropertyAttributes JSObject::GetPropertyAttributeWithReceiver(
JSObject* receiver,
String* key) {
uint32_t index;
uint32_t index = 0;
if (key->AsArrayIndex(&index)) {
if (HasElementWithReceiver(receiver, index)) return NONE;
return ABSENT;
@ -1738,7 +1738,7 @@ PropertyAttributes JSObject::GetPropertyAttribute(JSObject* receiver,
PropertyAttributes JSObject::GetLocalPropertyAttribute(String* name) {
// Check whether the name is an array index.
uint32_t index;
uint32_t index = 0;
if (name->AsArrayIndex(&index)) {
if (HasLocalElement(index)) return NONE;
return ABSENT;
@ -2010,7 +2010,7 @@ Object* JSObject::DeleteProperty(String* name) {
// ECMA-262, 3rd, 8.6.2.5
ASSERT(name->IsString());
uint32_t index;
uint32_t index = 0;
if (name->AsArrayIndex(&index)) {
return DeleteElement(index);
} else {