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

Side by Side Diff: src/bootstrapper.cc

Issue 17153011: DataView implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 7 years, 6 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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 native_context()->set_uint32_array_fun(*uint32_fun); 1355 native_context()->set_uint32_array_fun(*uint32_fun);
1356 Handle<JSFunction> float_fun = InstallTypedArray("Float32Array", 1356 Handle<JSFunction> float_fun = InstallTypedArray("Float32Array",
1357 EXTERNAL_FLOAT_ELEMENTS); 1357 EXTERNAL_FLOAT_ELEMENTS);
1358 native_context()->set_float_array_fun(*float_fun); 1358 native_context()->set_float_array_fun(*float_fun);
1359 Handle<JSFunction> double_fun = InstallTypedArray("Float64Array", 1359 Handle<JSFunction> double_fun = InstallTypedArray("Float64Array",
1360 EXTERNAL_DOUBLE_ELEMENTS); 1360 EXTERNAL_DOUBLE_ELEMENTS);
1361 native_context()->set_double_array_fun(*double_fun); 1361 native_context()->set_double_array_fun(*double_fun);
1362 Handle<JSFunction> uint8c_fun = InstallTypedArray("Uint8ClampedArray", 1362 Handle<JSFunction> uint8c_fun = InstallTypedArray("Uint8ClampedArray",
1363 EXTERNAL_PIXEL_ELEMENTS); 1363 EXTERNAL_PIXEL_ELEMENTS);
1364 native_context()->set_uint8c_array_fun(*uint8c_fun); 1364 native_context()->set_uint8c_array_fun(*uint8c_fun);
1365
1366 Handle<JSFunction> data_view_fun =
1367 InstallFunction(
1368 global, "DataView", JS_DATA_VIEW_TYPE,
1369 JSDataView::kSize,
1370 isolate()->initial_object_prototype(),
1371 Builtins::kIllegal, true, true);
1372 native_context()->set_data_view_fun(*data_view_fun);
1365 } 1373 }
1366 1374
1367 if (FLAG_harmony_generators) { 1375 if (FLAG_harmony_generators) {
1368 // Create generator meta-objects and install them on the builtins object. 1376 // Create generator meta-objects and install them on the builtins object.
1369 Handle<JSObject> builtins(native_context()->builtins()); 1377 Handle<JSObject> builtins(native_context()->builtins());
1370 Handle<JSObject> generator_object_prototype = 1378 Handle<JSObject> generator_object_prototype =
1371 factory()->NewJSObject(isolate()->object_function(), TENURED); 1379 factory()->NewJSObject(isolate()->object_function(), TENURED);
1372 Handle<JSFunction> generator_function_prototype = 1380 Handle<JSFunction> generator_function_prototype =
1373 InstallFunction(builtins, "GeneratorFunctionPrototype", 1381 InstallFunction(builtins, "GeneratorFunctionPrototype",
1374 JS_FUNCTION_TYPE, JSFunction::kHeaderSize, 1382 JS_FUNCTION_TYPE, JSFunction::kHeaderSize,
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 return from + sizeof(NestingCounterType); 2651 return from + sizeof(NestingCounterType);
2644 } 2652 }
2645 2653
2646 2654
2647 // Called when the top-level V8 mutex is destroyed. 2655 // Called when the top-level V8 mutex is destroyed.
2648 void Bootstrapper::FreeThreadResources() { 2656 void Bootstrapper::FreeThreadResources() {
2649 ASSERT(!IsActive()); 2657 ASSERT(!IsActive());
2650 } 2658 }
2651 2659
2652 } } // namespace v8::internal 2660 } } // 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