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

Side by Side Diff: src/wasm/wasm-code-specialization.cc

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: reverted v8-debugger change Created 3 years, 8 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/perf-jit.cc ('k') | src/wasm/wasm-module.cc » ('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 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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/wasm/wasm-code-specialization.h" 5 #include "src/wasm/wasm-code-specialization.h"
6 6
7 #include "src/assembler-inl.h" 7 #include "src/assembler-inl.h"
8 #include "src/objects-inl.h" 8 #include "src/objects-inl.h"
9 #include "src/source-position-table.h" 9 #include "src/source-position-table.h"
10 #include "src/wasm/decoder.h" 10 #include "src/wasm/decoder.h"
(...skipping 23 matching lines...) Expand all
34 do { 34 do {
35 byte_pos = iterator.source_position().ScriptOffset(); 35 byte_pos = iterator.source_position().ScriptOffset();
36 iterator.Advance(); 36 iterator.Advance();
37 } while (!iterator.done() && iterator.code_offset() <= offset); 37 } while (!iterator.done() && iterator.code_offset() <= offset);
38 return byte_pos; 38 return byte_pos;
39 } 39 }
40 40
41 class PatchDirectCallsHelper { 41 class PatchDirectCallsHelper {
42 public: 42 public:
43 PatchDirectCallsHelper(WasmInstanceObject* instance, Code* code) 43 PatchDirectCallsHelper(WasmInstanceObject* instance, Code* code)
44 : source_pos_it(code->source_position_table()), 44 : source_pos_it(code->SourcePositionTable()), decoder(nullptr, nullptr) {
45 decoder(nullptr, nullptr) {
46 FixedArray* deopt_data = code->deoptimization_data(); 45 FixedArray* deopt_data = code->deoptimization_data();
47 DCHECK_EQ(2, deopt_data->length()); 46 DCHECK_EQ(2, deopt_data->length());
48 WasmCompiledModule* comp_mod = instance->compiled_module(); 47 WasmCompiledModule* comp_mod = instance->compiled_module();
49 int func_index = Smi::cast(deopt_data->get(1))->value(); 48 int func_index = Smi::cast(deopt_data->get(1))->value();
50 func_bytes = comp_mod->module_bytes()->GetChars() + 49 func_bytes = comp_mod->module_bytes()->GetChars() +
51 comp_mod->module()->functions[func_index].code_start_offset; 50 comp_mod->module()->functions[func_index].code_start_offset;
52 } 51 }
53 52
54 SourcePositionTableIterator source_pos_it; 53 SourcePositionTableIterator source_pos_it;
55 Decoder decoder; 54 Decoder decoder;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 new_function_table_size, icache_flush_mode); 262 new_function_table_size, icache_flush_mode);
264 changed = true; 263 changed = true;
265 break; 264 break;
266 default: 265 default:
267 UNREACHABLE(); 266 UNREACHABLE();
268 } 267 }
269 } 268 }
270 269
271 return changed; 270 return changed;
272 } 271 }
OLDNEW
« no previous file with comments | « src/perf-jit.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698