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

Unified Diff: src/factory.cc

Issue 1314953004: [interpreter] Add constant_pool() to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_args
Patch Set: Fix store buffer. Created 5 years, 4 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/heap.h » ('j') | test/cctest/test-heap.cc » ('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 e4f57a709f29b417b7b7fe598118ec9cf2c1090e..b5a31597f611c45decabf67a4eaebd6edc2519e3 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -887,14 +887,13 @@ Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
}
-Handle<BytecodeArray> Factory::NewBytecodeArray(int length,
- const byte* raw_bytecodes,
- int frame_size,
- int parameter_count) {
+Handle<BytecodeArray> Factory::NewBytecodeArray(
+ int length, const byte* raw_bytecodes, int frame_size, int parameter_count,
+ Handle<FixedArray> constant_pool) {
DCHECK(0 <= length);
- CALL_HEAP_FUNCTION(isolate(),
- isolate()->heap()->AllocateBytecodeArray(
- length, raw_bytecodes, frame_size, parameter_count),
+ CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateBytecodeArray(
+ length, raw_bytecodes, frame_size,
+ parameter_count, *constant_pool),
BytecodeArray);
}
« no previous file with comments | « src/factory.h ('k') | src/heap/heap.h » ('j') | test/cctest/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698