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

Side by Side Diff: src/runtime.cc

Issue 9244: Fix place where linter complains about lonely {... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('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 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 return (hi << 4) + lo; 2251 return (hi << 4) + lo;
2252 } 2252 }
2253 2253
2254 2254
2255 static inline int Unescape(String* source, 2255 static inline int Unescape(String* source,
2256 StringShape shape, 2256 StringShape shape,
2257 int i, 2257 int i,
2258 int length, 2258 int length,
2259 int* step) { 2259 int* step) {
2260 uint16_t character = source->Get(shape, i); 2260 uint16_t character = source->Get(shape, i);
2261 int32_t hi, lo; 2261 int32_t hi = 0;
2262 int32_t lo = 0;
2262 if (character == '%' && 2263 if (character == '%' &&
2263 i <= length - 6 && 2264 i <= length - 6 &&
2264 source->Get(shape, i + 1) == 'u' && 2265 source->Get(shape, i + 1) == 'u' &&
2265 (hi = TwoDigitHex(source->Get(shape, i + 2), 2266 (hi = TwoDigitHex(source->Get(shape, i + 2),
2266 source->Get(shape, i + 3))) != -1 && 2267 source->Get(shape, i + 3))) != -1 &&
2267 (lo = TwoDigitHex(source->Get(shape, i + 4), 2268 (lo = TwoDigitHex(source->Get(shape, i + 4),
2268 source->Get(shape, i + 5))) != -1) { 2269 source->Get(shape, i + 5))) != -1) {
2269 *step = 6; 2270 *step = 6;
2270 return (hi << 8) + lo; 2271 return (hi << 8) + lo;
2271 } else if (character == '%' && 2272 } else if (character == '%' &&
(...skipping 3578 matching lines...) Expand 10 before | Expand all | Expand 10 after
5850 } else { 5851 } else {
5851 // Handle last resort GC and make sure to allow future allocations 5852 // Handle last resort GC and make sure to allow future allocations
5852 // to grow the heap without causing GCs (if possible). 5853 // to grow the heap without causing GCs (if possible).
5853 Counters::gc_last_resort_from_js.Increment(); 5854 Counters::gc_last_resort_from_js.Increment();
5854 Heap::CollectAllGarbage(); 5855 Heap::CollectAllGarbage();
5855 } 5856 }
5856 } 5857 }
5857 5858
5858 5859
5859 } } // namespace v8::internal 5860 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698