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:
parent
da96a860f0
commit
aabe3ed736
@ -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']
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user