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

Side by Side Diff: src/code-stubs.cc

Issue 78813003: Add trigonometric table to the snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1201
1202 void InternalArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) { 1202 void InternalArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) {
1203 InternalArrayNoArgumentConstructorStub stub1(FAST_ELEMENTS); 1203 InternalArrayNoArgumentConstructorStub stub1(FAST_ELEMENTS);
1204 InstallDescriptor(isolate, &stub1); 1204 InstallDescriptor(isolate, &stub1);
1205 InternalArraySingleArgumentConstructorStub stub2(FAST_ELEMENTS); 1205 InternalArraySingleArgumentConstructorStub stub2(FAST_ELEMENTS);
1206 InstallDescriptor(isolate, &stub2); 1206 InstallDescriptor(isolate, &stub2);
1207 InternalArrayNArgumentsConstructorStub stub3(FAST_ELEMENTS); 1207 InternalArrayNArgumentsConstructorStub stub3(FAST_ELEMENTS);
1208 InstallDescriptor(isolate, &stub3); 1208 InstallDescriptor(isolate, &stub3);
1209 } 1209 }
1210 1210
1211
1211 InternalArrayConstructorStub::InternalArrayConstructorStub( 1212 InternalArrayConstructorStub::InternalArrayConstructorStub(
1212 Isolate* isolate) { 1213 Isolate* isolate) {
1213 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1214 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1214 } 1215 }
1215 1216
1216 1217
1218 void InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(
1219 Isolate* isolate) {
1220 ElementsKind kinds[3] =
Sven Panne 2013/11/21 08:09:27 Drop the "3"...
1221 { FAST_ELEMENTS, FAST_HOLEY_ELEMENTS, FAST_DOUBLE_ELEMENTS };
1222 for (int i = 0; i < 3; i++) {
Sven Panne 2013/11/21 08:09:27 ... and use for (size_t i = 0; i < ARRAY_SIZE(
1223 // For internal arrays we only need a few things
1224 InternalArrayNoArgumentConstructorStub stubh1(kinds[i]);
1225 stubh1.GetCode(isolate)->set_is_pregenerated(true);
1226 InternalArraySingleArgumentConstructorStub stubh2(kinds[i]);
1227 stubh2.GetCode(isolate)->set_is_pregenerated(true);
1228 InternalArrayNArgumentsConstructorStub stubh3(kinds[i]);
1229 stubh3.GetCode(isolate)->set_is_pregenerated(true);
1230 }
1231
1232 // This is needed by the InternalDoubleArray.
1233 // See InternalArrayConstructorStub::GenerateCase.
1234 InternalArraySingleArgumentConstructorStub stub(FAST_HOLEY_DOUBLE_ELEMENTS);
1235 stub.GetCode(isolate)->set_is_pregenerated(true);
1236 }
1237
1217 } } // namespace v8::internal 1238 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | src/math.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698