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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 943503003: Emit exception handler table in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-4
Patch Set: Fix Win64 compilation failure. Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 case kArchCallCodeObject: { 328 case kArchCallCodeObject: {
329 EnsureSpaceForLazyDeopt(); 329 EnsureSpaceForLazyDeopt();
330 if (instr->InputAt(0)->IsImmediate()) { 330 if (instr->InputAt(0)->IsImmediate()) {
331 __ Call(Handle<Code>::cast(i.InputHeapObject(0)), 331 __ Call(Handle<Code>::cast(i.InputHeapObject(0)),
332 RelocInfo::CODE_TARGET); 332 RelocInfo::CODE_TARGET);
333 } else { 333 } else {
334 Register target = i.InputRegister(0); 334 Register target = i.InputRegister(0);
335 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag); 335 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag);
336 __ Call(target); 336 __ Call(target);
337 } 337 }
338 AddSafepointAndDeopt(instr); 338 RecordCallPosition(instr);
339 break; 339 break;
340 } 340 }
341 case kArchCallJSFunction: { 341 case kArchCallJSFunction: {
342 EnsureSpaceForLazyDeopt(); 342 EnsureSpaceForLazyDeopt();
343 Register func = i.InputRegister(0); 343 Register func = i.InputRegister(0);
344 if (FLAG_debug_code) { 344 if (FLAG_debug_code) {
345 // Check the function's context matches the context argument. 345 // Check the function's context matches the context argument.
346 UseScratchRegisterScope scope(masm()); 346 UseScratchRegisterScope scope(masm());
347 Register temp = scope.AcquireX(); 347 Register temp = scope.AcquireX();
348 __ Ldr(temp, FieldMemOperand(func, JSFunction::kContextOffset)); 348 __ Ldr(temp, FieldMemOperand(func, JSFunction::kContextOffset));
349 __ cmp(cp, temp); 349 __ cmp(cp, temp);
350 __ Assert(eq, kWrongFunctionContext); 350 __ Assert(eq, kWrongFunctionContext);
351 } 351 }
352 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 352 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
353 __ Call(x10); 353 __ Call(x10);
354 AddSafepointAndDeopt(instr); 354 RecordCallPosition(instr);
355 break; 355 break;
356 } 356 }
357 case kArchJmp: 357 case kArchJmp:
358 AssembleArchJump(i.InputRpo(0)); 358 AssembleArchJump(i.InputRpo(0));
359 break; 359 break;
360 case kArchTableSwitch: 360 case kArchTableSwitch:
361 AssembleArchTableSwitch(instr); 361 AssembleArchTableSwitch(instr);
362 break; 362 break;
363 case kArchLookupSwitch: 363 case kArchLookupSwitch:
364 AssembleArchLookupSwitch(instr); 364 AssembleArchLookupSwitch(instr);
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 } 1153 }
1154 } 1154 }
1155 MarkLazyDeoptSite(); 1155 MarkLazyDeoptSite();
1156 } 1156 }
1157 1157
1158 #undef __ 1158 #undef __
1159 1159
1160 } // namespace compiler 1160 } // namespace compiler
1161 } // namespace internal 1161 } // namespace internal
1162 } // namespace v8 1162 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698