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

Side by Side Diff: src/deoptimizer.cc

Issue 1699013002: [Interpreter] Push BytecodeArray onto interpreted stack frames. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Modify EnterBytecodeDispatch too Created 4 years, 10 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 | « src/arm64/builtins-arm64.cc ('k') | src/frames.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698