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

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: CR feedback 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
« no previous file with comments | « src/api.cc ('k') | src/elements-kind.h » ('j') | src/hydrogen.cc » ('J')
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 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 JSArrayBuffer::kSizeWithInternalFields, 1090 JSArrayBuffer::kSizeWithInternalFields,
1091 isolate->initial_object_prototype(), 1091 isolate->initial_object_prototype(),
1092 Builtins::kIllegal, true, true); 1092 Builtins::kIllegal, true, true);
1093 native_context()->set_array_buffer_fun(*array_buffer_fun); 1093 native_context()->set_array_buffer_fun(*array_buffer_fun);
1094 } 1094 }
1095 1095
1096 { // -- T y p e d A r r a y s 1096 { // -- T y p e d A r r a y s
1097 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 1097 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
1098 { \ 1098 { \
1099 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \ 1099 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \
1100 EXTERNAL_##TYPE##_ELEMENTS); \ 1100 TYPE##_ELEMENTS); \
1101 native_context()->set_##type##_array_fun(*fun); \ 1101 native_context()->set_##type##_array_fun(*fun); \
1102 } 1102 }
1103 TYPED_ARRAYS(INSTALL_TYPED_ARRAY) 1103 TYPED_ARRAYS(INSTALL_TYPED_ARRAY)
1104 #undef INSTALL_TYPED_ARRAY 1104 #undef INSTALL_TYPED_ARRAY
1105 1105
1106 Handle<JSFunction> data_view_fun = 1106 Handle<JSFunction> data_view_fun =
1107 InstallFunction( 1107 InstallFunction(
1108 global, "DataView", JS_DATA_VIEW_TYPE, 1108 global, "DataView", JS_DATA_VIEW_TYPE,
1109 JSDataView::kSizeWithInternalFields, 1109 JSDataView::kSizeWithInternalFields,
1110 isolate->initial_object_prototype(), 1110 isolate->initial_object_prototype(),
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 return from + sizeof(NestingCounterType); 2750 return from + sizeof(NestingCounterType);
2751 } 2751 }
2752 2752
2753 2753
2754 // Called when the top-level V8 mutex is destroyed. 2754 // Called when the top-level V8 mutex is destroyed.
2755 void Bootstrapper::FreeThreadResources() { 2755 void Bootstrapper::FreeThreadResources() {
2756 ASSERT(!IsActive()); 2756 ASSERT(!IsActive());
2757 } 2757 }
2758 2758
2759 } } // namespace v8::internal 2759 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/elements-kind.h » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698