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

Side by Side Diff: src/bootstrapper.cc

Issue 14657003: Implementation of Uint8ClampedArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 Handle<JSFunction> uint16_fun = InstallTypedArray("Uint16Array"); 1337 Handle<JSFunction> uint16_fun = InstallTypedArray("Uint16Array");
1338 native_context()->set_uint16_array_fun(*uint16_fun); 1338 native_context()->set_uint16_array_fun(*uint16_fun);
1339 Handle<JSFunction> int32_fun = InstallTypedArray("Int32Array"); 1339 Handle<JSFunction> int32_fun = InstallTypedArray("Int32Array");
1340 native_context()->set_int32_array_fun(*int32_fun); 1340 native_context()->set_int32_array_fun(*int32_fun);
1341 Handle<JSFunction> uint32_fun = InstallTypedArray("Uint32Array"); 1341 Handle<JSFunction> uint32_fun = InstallTypedArray("Uint32Array");
1342 native_context()->set_uint32_array_fun(*uint32_fun); 1342 native_context()->set_uint32_array_fun(*uint32_fun);
1343 Handle<JSFunction> float_fun = InstallTypedArray("Float32Array"); 1343 Handle<JSFunction> float_fun = InstallTypedArray("Float32Array");
1344 native_context()->set_float_array_fun(*float_fun); 1344 native_context()->set_float_array_fun(*float_fun);
1345 Handle<JSFunction> double_fun = InstallTypedArray("Float64Array"); 1345 Handle<JSFunction> double_fun = InstallTypedArray("Float64Array");
1346 native_context()->set_double_array_fun(*double_fun); 1346 native_context()->set_double_array_fun(*double_fun);
1347 } 1347 Handle<JSFunction> uint8c_fun = InstallTypedArray("Uint8ClampedArray");
1348 native_context()->set_uint8c_array_fun(*uint8c_fun);
1349 }
1348 } 1350 }
1349 1351
1350 if (FLAG_harmony_generators) { 1352 if (FLAG_harmony_generators) {
1351 // Create generator meta-objects and install them on the builtins object. 1353 // Create generator meta-objects and install them on the builtins object.
1352 Handle<JSObject> builtins(native_context()->builtins()); 1354 Handle<JSObject> builtins(native_context()->builtins());
1353 Handle<JSObject> generator_object_prototype = 1355 Handle<JSObject> generator_object_prototype =
1354 factory()->NewJSObject(isolate()->object_function(), TENURED); 1356 factory()->NewJSObject(isolate()->object_function(), TENURED);
1355 Handle<JSFunction> generator_function_prototype = 1357 Handle<JSFunction> generator_function_prototype =
1356 InstallFunction(builtins, "GeneratorFunctionPrototype", 1358 InstallFunction(builtins, "GeneratorFunctionPrototype",
1357 JS_FUNCTION_TYPE, JSFunction::kHeaderSize, 1359 JS_FUNCTION_TYPE, JSFunction::kHeaderSize,
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 return from + sizeof(NestingCounterType); 2580 return from + sizeof(NestingCounterType);
2579 } 2581 }
2580 2582
2581 2583
2582 // Called when the top-level V8 mutex is destroyed. 2584 // Called when the top-level V8 mutex is destroyed.
2583 void Bootstrapper::FreeThreadResources() { 2585 void Bootstrapper::FreeThreadResources() {
2584 ASSERT(!IsActive()); 2586 ASSERT(!IsActive());
2585 } 2587 }
2586 2588
2587 } } // namespace v8::internal 2589 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698