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

Side by Side Diff: src/bootstrapper.cc

Issue 15562008: Recording array buffer views. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback 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/heap.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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 isolate()->initial_object_prototype(), 1315 isolate()->initial_object_prototype(),
1316 Builtins::kIllegal, true, true); 1316 Builtins::kIllegal, true, true);
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 if (FLAG_harmony_array_buffer) { 1320 if (FLAG_harmony_array_buffer) {
1321 // -- A r r a y B u f f e r 1321 // -- A r r a y B u f f e r
1322 Handle<JSFunction> array_buffer_fun = 1322 Handle<JSFunction> array_buffer_fun =
1323 InstallFunction( 1323 InstallFunction(
1324 global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, 1324 global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE,
1325 JSArrayBuffer::kSize + 1325 JSArrayBuffer::kSizeWithInternalFields,
1326 v8::ArrayBuffer::kInternalFieldCount * kPointerSize,
1327 isolate()->initial_object_prototype(), 1326 isolate()->initial_object_prototype(),
1328 Builtins::kIllegal, true, true); 1327 Builtins::kIllegal, true, true);
1329 native_context()->set_array_buffer_fun(*array_buffer_fun); 1328 native_context()->set_array_buffer_fun(*array_buffer_fun);
1330 } 1329 }
1331 1330
1332 if (FLAG_harmony_typed_arrays) { 1331 if (FLAG_harmony_typed_arrays) {
1333 // -- T y p e d A r r a y s 1332 // -- T y p e d A r r a y s
1334 Handle<JSFunction> int8_fun = InstallTypedArray("Int8Array", 1333 Handle<JSFunction> int8_fun = InstallTypedArray("Int8Array",
1335 EXTERNAL_BYTE_ELEMENTS); 1334 EXTERNAL_BYTE_ELEMENTS);
1336 native_context()->set_int8_array_fun(*int8_fun); 1335 native_context()->set_int8_array_fun(*int8_fun);
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 return from + sizeof(NestingCounterType); 2626 return from + sizeof(NestingCounterType);
2628 } 2627 }
2629 2628
2630 2629
2631 // Called when the top-level V8 mutex is destroyed. 2630 // Called when the top-level V8 mutex is destroyed.
2632 void Bootstrapper::FreeThreadResources() { 2631 void Bootstrapper::FreeThreadResources() {
2633 ASSERT(!IsActive()); 2632 ASSERT(!IsActive());
2634 } 2633 }
2635 2634
2636 } } // namespace v8::internal 2635 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698