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

Side by Side Diff: src/bootstrapper.cc

Issue 208503007: Revert "This implements allocating small typed arrays in heap." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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') | 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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 JSArrayBuffer::kSizeWithInternalFields, 1092 JSArrayBuffer::kSizeWithInternalFields,
1093 isolate->initial_object_prototype(), 1093 isolate->initial_object_prototype(),
1094 Builtins::kIllegal, true, true); 1094 Builtins::kIllegal, true, true);
1095 native_context()->set_array_buffer_fun(*array_buffer_fun); 1095 native_context()->set_array_buffer_fun(*array_buffer_fun);
1096 } 1096 }
1097 1097
1098 { // -- T y p e d A r r a y s 1098 { // -- T y p e d A r r a y s
1099 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 1099 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
1100 { \ 1100 { \
1101 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \ 1101 Handle<JSFunction> fun = InstallTypedArray(#Type "Array", \
1102 TYPE##_ELEMENTS); \ 1102 EXTERNAL_##TYPE##_ELEMENTS); \
1103 native_context()->set_##type##_array_fun(*fun); \ 1103 native_context()->set_##type##_array_fun(*fun); \
1104 } 1104 }
1105 TYPED_ARRAYS(INSTALL_TYPED_ARRAY) 1105 TYPED_ARRAYS(INSTALL_TYPED_ARRAY)
1106 #undef INSTALL_TYPED_ARRAY 1106 #undef INSTALL_TYPED_ARRAY
1107 1107
1108 Handle<JSFunction> data_view_fun = 1108 Handle<JSFunction> data_view_fun =
1109 InstallFunction( 1109 InstallFunction(
1110 global, "DataView", JS_DATA_VIEW_TYPE, 1110 global, "DataView", JS_DATA_VIEW_TYPE,
1111 JSDataView::kSizeWithInternalFields, 1111 JSDataView::kSizeWithInternalFields,
1112 isolate->initial_object_prototype(), 1112 isolate->initial_object_prototype(),
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
2755 return from + sizeof(NestingCounterType); 2755 return from + sizeof(NestingCounterType);
2756 } 2756 }
2757 2757
2758 2758
2759 // Called when the top-level V8 mutex is destroyed. 2759 // Called when the top-level V8 mutex is destroyed.
2760 void Bootstrapper::FreeThreadResources() { 2760 void Bootstrapper::FreeThreadResources() {
2761 ASSERT(!IsActive()); 2761 ASSERT(!IsActive());
2762 } 2762 }
2763 2763
2764 } } // namespace v8::internal 2764 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/elements-kind.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698