to Seo Sanghyeon and Koda's). Yay, our first patch!
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@119
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
-template <> static inline bool Is<JSFunction>(Object* obj) {
+template <> inline bool Is<JSFunction>(Object* obj) {
return obj->IsJSFunction();
}
}
-template <> static inline bool Is<JSArray>(Object* obj) {
+template <> inline bool Is<JSArray>(Object* obj) {
return obj->IsJSArray();
}
int bytes_read = -1;
do {
bytes_read++;
- if (bytes_read > MAP_LENGTH - 1)
+ if (bytes_read >= MAP_LENGTH - 1)
break;
int result = read(fd, buffer + bytes_read, 1);
// A read error means that -1 is returned.