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

Side by Side Diff: src/bootstrapper.cc

Issue 150813004: In-heap small typed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for review Created 6 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
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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 JSArrayBuffer::kSizeWithInternalFields, 1091 JSArrayBuffer::kSizeWithInternalFields,
1092 isolate->initial_object_prototype(), 1092 isolate->initial_object_prototype(),
1093 Builtins::kIllegal, true, true); 1093 Builtins::kIllegal, true, true);
1094 native_context()->set_array_buffer_fun(*array_buffer_fun); 1094 native_context()->set_array_buffer_fun(*array_buffer_fun);
1095 } 1095 }
1096 1096
1097 { // -- T y p e d A r r a y s 1097 { // -- T y p e d A r r a y s
1098 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 1098 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
1099 { \ 1099 { \
1100 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \ 1100 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \
1101 EXTERNAL_##TYPE##_ELEMENTS); \ 1101 TYPE##_ELEMENTS); \
1102 native_context()->set_##type##_array_fun(*fun); \ 1102 native_context()->set_##type##_array_fun(*fun); \
1103 } 1103 }
1104 TYPED_ARRAYS(INSTALL_TYPED_ARRAY) 1104 TYPED_ARRAYS(INSTALL_TYPED_ARRAY)
1105 #undef INSTALL_TYPED_ARRAY 1105 #undef INSTALL_TYPED_ARRAY
1106 1106
1107 Handle<JSFunction> data_view_fun = 1107 Handle<JSFunction> data_view_fun =
1108 InstallFunction( 1108 InstallFunction(
1109 global, "DataView", JS_DATA_VIEW_TYPE, 1109 global, "DataView", JS_DATA_VIEW_TYPE,
1110 JSDataView::kSizeWithInternalFields, 1110 JSDataView::kSizeWithInternalFields,
1111 isolate->initial_object_prototype(), 1111 isolate->initial_object_prototype(),
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 return from + sizeof(NestingCounterType); 2746 return from + sizeof(NestingCounterType);
2747 } 2747 }
2748 2748
2749 2749
2750 // Called when the top-level V8 mutex is destroyed. 2750 // Called when the top-level V8 mutex is destroyed.
2751 void Bootstrapper::FreeThreadResources() { 2751 void Bootstrapper::FreeThreadResources() {
2752 ASSERT(!IsActive()); 2752 ASSERT(!IsActive());
2753 } 2753 }
2754 2754
2755 } } // namespace v8::internal 2755 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/elements-kind.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698