OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/deoptimizer.h" | 5 #include "src/deoptimizer.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 WriteValueToOutput(function, 0, frame_index, output_offset, "function "); | 1244 WriteValueToOutput(function, 0, frame_index, output_offset, "function "); |
1245 | 1245 |
1246 // The new.target slot is only used during function activiation which is | 1246 // The new.target slot is only used during function activiation which is |
1247 // before the first deopt point, so should never be needed. Just set it to | 1247 // before the first deopt point, so should never be needed. Just set it to |
1248 // undefined. | 1248 // undefined. |
1249 output_offset -= kPointerSize; | 1249 output_offset -= kPointerSize; |
1250 input_offset -= kPointerSize; | 1250 input_offset -= kPointerSize; |
1251 Object* new_target = isolate_->heap()->undefined_value(); | 1251 Object* new_target = isolate_->heap()->undefined_value(); |
1252 WriteValueToOutput(new_target, 0, frame_index, output_offset, "new_target "); | 1252 WriteValueToOutput(new_target, 0, frame_index, output_offset, "new_target "); |
1253 | 1253 |
1254 // Set the dispatch table pointer. | 1254 // Set the bytecode array pointer. |
1255 output_offset -= kPointerSize; | 1255 output_offset -= kPointerSize; |
1256 input_offset -= kPointerSize; | 1256 input_offset -= kPointerSize; |
1257 Address dispatch_table = isolate()->interpreter()->dispatch_table_address(); | 1257 Object* bytecode_array = shared->bytecode_array(); |
1258 WriteValueToOutput(reinterpret_cast<Object*>(dispatch_table), 0, frame_index, | 1258 WriteValueToOutput(bytecode_array, 0, frame_index, output_offset, |
1259 output_offset, "dispatch_table "); | 1259 "bytecode array "); |
1260 | 1260 |
1261 // The bytecode offset was mentioned explicitly in the BEGIN_FRAME. | 1261 // The bytecode offset was mentioned explicitly in the BEGIN_FRAME. |
1262 output_offset -= kPointerSize; | 1262 output_offset -= kPointerSize; |
1263 input_offset -= kPointerSize; | 1263 input_offset -= kPointerSize; |
1264 int raw_bytecode_offset = | 1264 int raw_bytecode_offset = |
1265 BytecodeArray::kHeaderSize - kHeapObjectTag + bytecode_offset; | 1265 BytecodeArray::kHeaderSize - kHeapObjectTag + bytecode_offset; |
1266 Smi* smi_bytecode_offset = Smi::FromInt(raw_bytecode_offset); | 1266 Smi* smi_bytecode_offset = Smi::FromInt(raw_bytecode_offset); |
1267 WriteValueToOutput(smi_bytecode_offset, 0, frame_index, output_offset, | 1267 WriteValueToOutput(smi_bytecode_offset, 0, frame_index, output_offset, |
1268 "bytecode offset "); | 1268 "bytecode offset "); |
1269 | 1269 |
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3732 CHECK(value_info->IsMaterializedObject()); | 3732 CHECK(value_info->IsMaterializedObject()); |
3733 | 3733 |
3734 value_info->value_ = | 3734 value_info->value_ = |
3735 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3735 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3736 } | 3736 } |
3737 } | 3737 } |
3738 } | 3738 } |
3739 | 3739 |
3740 } // namespace internal | 3740 } // namespace internal |
3741 } // namespace v8 | 3741 } // namespace v8 |
OLD | NEW |