Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: regexp2000/src/string-stream.cc

Issue 9686: * Small fixes to make experimental branch compile on Windows. (Closed)
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « regexp2000/src/parser.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 case 's': { 124 case 's': {
125 ASSERT_EQ(FmtElm::C_STR, current.type_); 125 ASSERT_EQ(FmtElm::C_STR, current.type_);
126 const char* value = current.data_.u_c_str_; 126 const char* value = current.data_.u_c_str_;
127 Add(value); 127 Add(value);
128 break; 128 break;
129 } 129 }
130 case 'w': { 130 case 'w': {
131 ASSERT_EQ(FmtElm::LC_STR, current.type_); 131 ASSERT_EQ(FmtElm::LC_STR, current.type_);
132 Vector<const uc16> value = *current.data_.u_lc_str_; 132 Vector<const uc16> value = *current.data_.u_lc_str_;
133 for (int i = 0; i < value.length(); i++) 133 for (int i = 0; i < value.length(); i++)
134 Put(value[i]); 134 Put(static_cast<char>(value[i]));
135 break; 135 break;
136 } 136 }
137 case 'o': { 137 case 'o': {
138 ASSERT_EQ(FmtElm::OBJ, current.type_); 138 ASSERT_EQ(FmtElm::OBJ, current.type_);
139 Object* obj = current.data_.u_obj_; 139 Object* obj = current.data_.u_obj_;
140 PrintObject(obj); 140 PrintObject(obj);
141 break; 141 break;
142 } 142 }
143 case 'i': case 'd': case 'u': case 'x': case 'c': case 'p': { 143 case 'i': case 'd': case 'u': case 'x': case 'c': case 'p': {
144 int value = current.data_.u_int_; 144 int value = current.data_.u_int_;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 unsigned new_bytes = *bytes * 2; 541 unsigned new_bytes = *bytes * 2;
542 if (new_bytes > size_) { 542 if (new_bytes > size_) {
543 new_bytes = size_; 543 new_bytes = size_;
544 } 544 }
545 *bytes = new_bytes; 545 *bytes = new_bytes;
546 return space_; 546 return space_;
547 } 547 }
548 548
549 549
550 } } // namespace v8::internal 550 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « regexp2000/src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698