| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index d6499509c05549a2c4395168972a692b2a619470..b5f925e5bfd0865f5df5998d2ed3eaa71ddb5cce 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -445,21 +445,11 @@ bool UseIgnition(CompilationInfo* info) {
|
| }
|
|
|
| int CodeAndMetadataSize(CompilationInfo* info) {
|
| - int size = 0;
|
| if (info->has_bytecode_array()) {
|
| - Handle<BytecodeArray> bytecode_array = info->bytecode_array();
|
| - size += bytecode_array->BytecodeArraySize();
|
| - size += bytecode_array->constant_pool()->Size();
|
| - size += bytecode_array->handler_table()->Size();
|
| - size += bytecode_array->source_position_table()->Size();
|
| + return info->bytecode_array()->BytecodeAndMetadataSize();
|
| } else {
|
| - Handle<Code> code = info->code();
|
| - size += code->CodeSize();
|
| - size += code->relocation_info()->Size();
|
| - size += code->deoptimization_data()->Size();
|
| - size += code->handler_table()->Size();
|
| + return info->code()->CodeAndMetadataSize();
|
| }
|
| - return size;
|
| }
|
|
|
| bool GenerateUnoptimizedCode(CompilationInfo* info) {
|
|
|