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

Side by Side Diff: src/runtime.cc

Issue 40215: Fix minor formatting issue. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months 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 | « no previous file | 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 Handle<FixedArray> literals = args.at<FixedArray>(0); 201 Handle<FixedArray> literals = args.at<FixedArray>(0);
202 int literals_index = Smi::cast(args[1])->value(); 202 int literals_index = Smi::cast(args[1])->value();
203 Handle<FixedArray> constant_properties = args.at<FixedArray>(2); 203 Handle<FixedArray> constant_properties = args.at<FixedArray>(2);
204 204
205 Handle<Object> result = 205 Handle<Object> result =
206 CreateObjectLiteralBoilerplate(literals, constant_properties); 206 CreateObjectLiteralBoilerplate(literals, constant_properties);
207 207
208 if (result.is_null()) return Failure::Exception(); 208 if (result.is_null()) return Failure::Exception();
209 209
210 // Update the functions literal and return the boilerplate. 210 // Update the functions literal and return the boilerplate.
211 literals->set(literals_index, *result);; 211 literals->set(literals_index, *result);
212 212
213 return *result; 213 return *result;
214 } 214 }
215 215
216 216
217 static Object* Runtime_CreateArrayLiteral(Arguments args) { 217 static Object* Runtime_CreateArrayLiteral(Arguments args) {
218 // Takes a FixedArray of elements containing the literal elements of 218 // Takes a FixedArray of elements containing the literal elements of
219 // the array literal and produces JSArray with those elements. 219 // the array literal and produces JSArray with those elements.
220 // Additionally takes the literals array of the surrounding function 220 // Additionally takes the literals array of the surrounding function
221 // which contains the context from which to get the Array function 221 // which contains the context from which to get the Array function
(...skipping 5914 matching lines...) Expand 10 before | Expand all | Expand 10 after
6136 } else { 6136 } else {
6137 // Handle last resort GC and make sure to allow future allocations 6137 // Handle last resort GC and make sure to allow future allocations
6138 // to grow the heap without causing GCs (if possible). 6138 // to grow the heap without causing GCs (if possible).
6139 Counters::gc_last_resort_from_js.Increment(); 6139 Counters::gc_last_resort_from_js.Increment();
6140 Heap::CollectAllGarbage(); 6140 Heap::CollectAllGarbage();
6141 } 6141 }
6142 } 6142 }
6143 6143
6144 6144
6145 } } // namespace v8::internal 6145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698