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

Side by Side Diff: src/factory.h

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use BytecodeArray in bytecode emission path in interpreter. Created 5 years, 5 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
« no previous file with comments | « include/v8.h ('k') | src/factory.cc » ('j') | src/factory.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 Handle<Foreign> NewForeign(Address addr, 276 Handle<Foreign> NewForeign(Address addr,
277 PretenureFlag pretenure = NOT_TENURED); 277 PretenureFlag pretenure = NOT_TENURED);
278 278
279 // Allocate a new foreign object. The foreign is pretenured (allocated 279 // Allocate a new foreign object. The foreign is pretenured (allocated
280 // directly in the old generation). 280 // directly in the old generation).
281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); 281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign);
282 282
283 Handle<ByteArray> NewByteArray(int length, 283 Handle<ByteArray> NewByteArray(int length,
284 PretenureFlag pretenure = NOT_TENURED); 284 PretenureFlag pretenure = NOT_TENURED);
285 285
286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* start,
rmcilroy 2015/07/15 13:33:37 nit - /s/start/raw_bytecodes.
oth 2015/07/16 09:15:49 Done.
287 PretenureFlag pretenure = NOT_TENURED);
rmcilroy 2015/07/15 13:33:37 Let's remove the pretenure flag and just always te
oth 2015/07/16 09:15:49 Done.
288
286 Handle<ExternalArray> NewExternalArray( 289 Handle<ExternalArray> NewExternalArray(
287 int length, 290 int length,
288 ExternalArrayType array_type, 291 ExternalArrayType array_type,
289 void* external_pointer, 292 void* external_pointer,
290 PretenureFlag pretenure = NOT_TENURED); 293 PretenureFlag pretenure = NOT_TENURED);
291 294
292 Handle<FixedTypedArrayBase> NewFixedTypedArray( 295 Handle<FixedTypedArrayBase> NewFixedTypedArray(
293 int length, ExternalArrayType array_type, bool initialize, 296 int length, ExternalArrayType array_type, bool initialize,
294 PretenureFlag pretenure = NOT_TENURED); 297 PretenureFlag pretenure = NOT_TENURED);
295 298
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // Reinitialize a JSProxy into an (empty) JS object of respective type and 740 // Reinitialize a JSProxy into an (empty) JS object of respective type and
738 // size, but keeping the original prototype. The receiver must have at least 741 // size, but keeping the original prototype. The receiver must have at least
739 // the size of the new object. The object is reinitialized and behaves as an 742 // the size of the new object. The object is reinitialized and behaves as an
740 // object that has been freshly allocated. 743 // object that has been freshly allocated.
741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
742 }; 745 };
743 746
744 } } // namespace v8::internal 747 } } // namespace v8::internal
745 748
746 #endif // V8_FACTORY_H_ 749 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/factory.cc » ('j') | src/factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698