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

Side by Side Diff: src/arm64/deoptimizer-arm64.cc

Issue 1474763008: Always pass an Isolate to AssemblerBase (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years 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/codegen-arm64.cc ('k') | src/arm64/instructions-arm64.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/arm64/frames-arm64.h" 5 #include "src/arm64/frames-arm64.h"
6 #include "src/codegen.h" 6 #include "src/codegen.h"
7 #include "src/deoptimizer.h" 7 #include "src/deoptimizer.h"
8 #include "src/full-codegen/full-codegen.h" 8 #include "src/full-codegen/full-codegen.h"
9 #include "src/register-configuration.h" 9 #include "src/register-configuration.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 Address prev_call_address = NULL; 42 Address prev_call_address = NULL;
43 #endif 43 #endif
44 // For each LLazyBailout instruction insert a call to the corresponding 44 // For each LLazyBailout instruction insert a call to the corresponding
45 // deoptimization entry. 45 // deoptimization entry.
46 for (int i = 0; i < deopt_data->DeoptCount(); i++) { 46 for (int i = 0; i < deopt_data->DeoptCount(); i++) {
47 if (deopt_data->Pc(i)->value() == -1) continue; 47 if (deopt_data->Pc(i)->value() == -1) continue;
48 48
49 Address call_address = code_start_address + deopt_data->Pc(i)->value(); 49 Address call_address = code_start_address + deopt_data->Pc(i)->value();
50 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY); 50 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY);
51 51
52 PatchingAssembler patcher(call_address, patch_size() / kInstructionSize); 52 PatchingAssembler patcher(isolate, call_address,
53 patch_size() / kInstructionSize);
53 patcher.ldr_pcrel(ip0, (2 * kInstructionSize) >> kLoadLiteralScaleLog2); 54 patcher.ldr_pcrel(ip0, (2 * kInstructionSize) >> kLoadLiteralScaleLog2);
54 patcher.blr(ip0); 55 patcher.blr(ip0);
55 patcher.dc64(reinterpret_cast<intptr_t>(deopt_entry)); 56 patcher.dc64(reinterpret_cast<intptr_t>(deopt_entry));
56 57
57 DCHECK((prev_call_address == NULL) || 58 DCHECK((prev_call_address == NULL) ||
58 (call_address >= prev_call_address + patch_size())); 59 (call_address >= prev_call_address + patch_size()));
59 DCHECK(call_address + patch_size() <= code->instruction_end()); 60 DCHECK(call_address + patch_size() <= code->instruction_end());
60 #ifdef DEBUG 61 #ifdef DEBUG
61 prev_call_address = call_address; 62 prev_call_address = call_address;
62 #endif 63 #endif
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 359 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
359 // No embedded constant pool support. 360 // No embedded constant pool support.
360 UNREACHABLE(); 361 UNREACHABLE();
361 } 362 }
362 363
363 364
364 #undef __ 365 #undef __
365 366
366 } // namespace internal 367 } // namespace internal
367 } // namespace v8 368 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/codegen-arm64.cc ('k') | src/arm64/instructions-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698