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

Side by Side Diff: src/compiler/arm/code-generator-arm.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
« no previous file with comments | « no previous file | src/compiler/arm/instruction-selector-arm.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 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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 case kArchCallCodeObject: { 306 case kArchCallCodeObject: {
307 EnsureSpaceForLazyDeopt(); 307 EnsureSpaceForLazyDeopt();
308 if (instr->InputAt(0)->IsImmediate()) { 308 if (instr->InputAt(0)->IsImmediate()) {
309 __ Call(Handle<Code>::cast(i.InputHeapObject(0)), 309 __ Call(Handle<Code>::cast(i.InputHeapObject(0)),
310 RelocInfo::CODE_TARGET); 310 RelocInfo::CODE_TARGET);
311 } else { 311 } else {
312 __ add(ip, i.InputRegister(0), 312 __ add(ip, i.InputRegister(0),
313 Operand(Code::kHeaderSize - kHeapObjectTag)); 313 Operand(Code::kHeaderSize - kHeapObjectTag));
314 __ Call(ip); 314 __ Call(ip);
315 } 315 }
316 AddSafepointAndDeopt(instr); 316 RecordCallPosition(instr);
317 DCHECK_EQ(LeaveCC, i.OutputSBit()); 317 DCHECK_EQ(LeaveCC, i.OutputSBit());
318 break; 318 break;
319 } 319 }
320 case kArchCallJSFunction: { 320 case kArchCallJSFunction: {
321 EnsureSpaceForLazyDeopt(); 321 EnsureSpaceForLazyDeopt();
322 Register func = i.InputRegister(0); 322 Register func = i.InputRegister(0);
323 if (FLAG_debug_code) { 323 if (FLAG_debug_code) {
324 // Check the function's context matches the context argument. 324 // Check the function's context matches the context argument.
325 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); 325 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset));
326 __ cmp(cp, kScratchReg); 326 __ cmp(cp, kScratchReg);
327 __ Assert(eq, kWrongFunctionContext); 327 __ Assert(eq, kWrongFunctionContext);
328 } 328 }
329 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 329 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
330 __ Call(ip); 330 __ Call(ip);
331 AddSafepointAndDeopt(instr); 331 RecordCallPosition(instr);
332 DCHECK_EQ(LeaveCC, i.OutputSBit()); 332 DCHECK_EQ(LeaveCC, i.OutputSBit());
333 break; 333 break;
334 } 334 }
335 case kArchJmp: 335 case kArchJmp:
336 AssembleArchJump(i.InputRpo(0)); 336 AssembleArchJump(i.InputRpo(0));
337 DCHECK_EQ(LeaveCC, i.OutputSBit()); 337 DCHECK_EQ(LeaveCC, i.OutputSBit());
338 break; 338 break;
339 case kArchLookupSwitch: 339 case kArchLookupSwitch:
340 AssembleArchLookupSwitch(instr); 340 AssembleArchLookupSwitch(instr);
341 DCHECK_EQ(LeaveCC, i.OutputSBit()); 341 DCHECK_EQ(LeaveCC, i.OutputSBit());
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 } 1073 }
1074 } 1074 }
1075 MarkLazyDeoptSite(); 1075 MarkLazyDeoptSite();
1076 } 1076 }
1077 1077
1078 #undef __ 1078 #undef __
1079 1079
1080 } // namespace compiler 1080 } // namespace compiler
1081 } // namespace internal 1081 } // namespace internal
1082 } // namespace v8 1082 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698