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

Side by Side Diff: src/bootstrapper.cc

Issue 13958007: First cut at API for ES6 ArrayBuffers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 7 years, 8 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 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 } 1296 }
1297 { // -- W e a k M a p 1297 { // -- W e a k M a p
1298 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, 1298 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize,
1299 isolate()->initial_object_prototype(), 1299 isolate()->initial_object_prototype(),
1300 Builtins::kIllegal, true); 1300 Builtins::kIllegal, true);
1301 } 1301 }
1302 } 1302 }
1303 1303
1304 if (FLAG_harmony_typed_arrays) { 1304 if (FLAG_harmony_typed_arrays) {
1305 { // -- A r r a y B u f f e r 1305 { // -- A r r a y B u f f e r
1306 InstallFunction(global, "__ArrayBuffer", JS_ARRAY_BUFFER_TYPE, 1306 Handle<JSFunction> array_buffer_fun =
1307 JSArrayBuffer::kSize, 1307 InstallFunction(global, "__ArrayBuffer", JS_ARRAY_BUFFER_TYPE,
1308 isolate()->initial_object_prototype(), 1308 JSArrayBuffer::kSize,
1309 Builtins::kIllegal, true); 1309 isolate()->initial_object_prototype(),
1310 Builtins::kIllegal, true);
1311 native_context()->set_array_buffer_fun(*array_buffer_fun);
1310 } 1312 }
1311 { 1313 {
1312 // -- T y p e d A r r a y s 1314 // -- T y p e d A r r a y s
1313 InstallTypedArray("__Int8Array"); 1315 InstallTypedArray("__Int8Array");
1314 InstallTypedArray("__Uint8Array"); 1316 InstallTypedArray("__Uint8Array");
1315 InstallTypedArray("__Int16Array"); 1317 InstallTypedArray("__Int16Array");
1316 InstallTypedArray("__Uint16Array"); 1318 InstallTypedArray("__Uint16Array");
1317 InstallTypedArray("__Int32Array"); 1319 InstallTypedArray("__Int32Array");
1318 InstallTypedArray("__Uint32Array"); 1320 InstallTypedArray("__Uint32Array");
1319 InstallTypedArray("__Float32Array"); 1321 InstallTypedArray("__Float32Array");
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2554 return from + sizeof(NestingCounterType); 2556 return from + sizeof(NestingCounterType);
2555 } 2557 }
2556 2558
2557 2559
2558 // Called when the top-level V8 mutex is destroyed. 2560 // Called when the top-level V8 mutex is destroyed.
2559 void Bootstrapper::FreeThreadResources() { 2561 void Bootstrapper::FreeThreadResources() {
2560 ASSERT(!IsActive()); 2562 ASSERT(!IsActive());
2561 } 2563 }
2562 2564
2563 } } // namespace v8::internal 2565 } } // 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