Fix lint issues.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
70fa44ecea
commit
2b3b31cf1c
@ -491,7 +491,7 @@ template <class Dest, class Source>
|
|||||||
inline Dest bit_cast(const Source& source) {
|
inline Dest bit_cast(const Source& source) {
|
||||||
// Compile time assertion: sizeof(Dest) == sizeof(Source)
|
// Compile time assertion: sizeof(Dest) == sizeof(Source)
|
||||||
// A compile error here means your Dest and Source have different sizes.
|
// A compile error here means your Dest and Source have different sizes.
|
||||||
typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
||||||
|
|
||||||
Dest dest;
|
Dest dest;
|
||||||
memcpy(&dest, &source, sizeof(dest));
|
memcpy(&dest, &source, sizeof(dest));
|
||||||
|
@ -510,8 +510,8 @@ static Object* Runtime_InitializeVarGlobal(Arguments args) {
|
|||||||
if (!lookup.IsProperty()) {
|
if (!lookup.IsProperty()) {
|
||||||
Object* value = (assign) ? args[1] : Heap::undefined_value();
|
Object* value = (assign) ? args[1] : Heap::undefined_value();
|
||||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||||
value,
|
value,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine if this is a redeclaration of something read-only.
|
// Determine if this is a redeclaration of something read-only.
|
||||||
@ -576,8 +576,8 @@ static Object* Runtime_InitializeConstGlobal(Arguments args) {
|
|||||||
global->LocalLookup(*name, &lookup);
|
global->LocalLookup(*name, &lookup);
|
||||||
if (!lookup.IsProperty()) {
|
if (!lookup.IsProperty()) {
|
||||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||||
*value,
|
*value,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine if this is a redeclaration of something not
|
// Determine if this is a redeclaration of something not
|
||||||
|
@ -166,8 +166,7 @@ $Object.prototype.constructor = $Object;
|
|||||||
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
||||||
}
|
}
|
||||||
if (!IS_FUNCTION(fun)) {
|
if (!IS_FUNCTION(fun)) {
|
||||||
throw new $TypeError(
|
throw new $TypeError('Object.prototype.__defineGetter__: Expecting function');
|
||||||
'Object.prototype.__defineGetter__: Expecting function');
|
|
||||||
}
|
}
|
||||||
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
||||||
}, DONT_ENUM);
|
}, DONT_ENUM);
|
||||||
|
Loading…
Reference in New Issue
Block a user