| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 } | 959 } |
| 960 } | 960 } |
| 961 | 961 |
| 962 private: | 962 private: |
| 963 List<Object**>* global_handles_; | 963 List<Object**>* global_handles_; |
| 964 }; | 964 }; |
| 965 | 965 |
| 966 | 966 |
| 967 void Serializer::PutFlags() { | 967 void Serializer::PutFlags() { |
| 968 writer_->PutC('F'); | 968 writer_->PutC('F'); |
| 969 List<char*>* argv = FlagList::argv(); | 969 List<const char*>* argv = FlagList::argv(); |
| 970 writer_->PutInt(argv->length()); | 970 writer_->PutInt(argv->length()); |
| 971 writer_->PutC('['); | 971 writer_->PutC('['); |
| 972 for (int i = 0; i < argv->length(); i++) { | 972 for (int i = 0; i < argv->length(); i++) { |
| 973 if (i > 0) writer_->PutC('|'); | 973 if (i > 0) writer_->PutC('|'); |
| 974 writer_->PutString((*argv)[i]); | 974 writer_->PutString((*argv)[i]); |
| 975 DeleteArray((*argv)[i]); | 975 DeleteArray((*argv)[i]); |
| 976 } | 976 } |
| 977 writer_->PutC(']'); | 977 writer_->PutC(']'); |
| 978 flags_end_ = writer_->length(); | 978 flags_end_ = writer_->length(); |
| 979 delete argv; | 979 delete argv; |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 ASSERT(index < large_objects_.length()); | 1514 ASSERT(index < large_objects_.length()); |
| 1515 } | 1515 } |
| 1516 return large_objects_[index]; // s.page_offset() is ignored. | 1516 return large_objects_[index]; // s.page_offset() is ignored. |
| 1517 } | 1517 } |
| 1518 UNREACHABLE(); | 1518 UNREACHABLE(); |
| 1519 return NULL; | 1519 return NULL; |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 | 1522 |
| 1523 } } // namespace v8::internal | 1523 } } // namespace v8::internal |
| OLD | NEW |