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

Unified Diff: src/factory.cc

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't use extra memory for BytecodeArray in SharedFunctionInfo and add a BytecodeArray test. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.h ('k') | src/heap-snapshot-generator.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index f8154180f0cbacccc32a3917b7e16fba7e4552e6..5d81e54f5e899f5958717fa05091acba4ab9b284 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -873,6 +873,15 @@ Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
}
+Handle<BytecodeArray> Factory::NewBytecodeArray(int length,
+ const byte* raw_bytecodes) {
+ DCHECK(0 <= length);
+ CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateBytecodeArray(
+ length, raw_bytecodes),
+ BytecodeArray);
+}
+
+
Handle<ExternalArray> Factory::NewExternalArray(int length,
ExternalArrayType array_type,
void* external_pointer,
« no previous file with comments | « src/factory.h ('k') | src/heap-snapshot-generator.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698