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

Side by Side Diff: src/compiler/x64/code-generator-x64.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 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 case kArchCallCodeObject: { 519 case kArchCallCodeObject: {
520 EnsureSpaceForLazyDeopt(); 520 EnsureSpaceForLazyDeopt();
521 if (HasImmediateInput(instr, 0)) { 521 if (HasImmediateInput(instr, 0)) {
522 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); 522 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0));
523 __ Call(code, RelocInfo::CODE_TARGET); 523 __ Call(code, RelocInfo::CODE_TARGET);
524 } else { 524 } else {
525 Register reg = i.InputRegister(0); 525 Register reg = i.InputRegister(0);
526 int entry = Code::kHeaderSize - kHeapObjectTag; 526 int entry = Code::kHeaderSize - kHeapObjectTag;
527 __ Call(Operand(reg, entry)); 527 __ Call(Operand(reg, entry));
528 } 528 }
529 AddSafepointAndDeopt(instr); 529 RecordCallPosition(instr);
530 break; 530 break;
531 } 531 }
532 case kArchCallJSFunction: { 532 case kArchCallJSFunction: {
533 EnsureSpaceForLazyDeopt(); 533 EnsureSpaceForLazyDeopt();
534 Register func = i.InputRegister(0); 534 Register func = i.InputRegister(0);
535 if (FLAG_debug_code) { 535 if (FLAG_debug_code) {
536 // Check the function's context matches the context argument. 536 // Check the function's context matches the context argument.
537 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); 537 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset));
538 __ Assert(equal, kWrongFunctionContext); 538 __ Assert(equal, kWrongFunctionContext);
539 } 539 }
540 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset)); 540 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset));
541 AddSafepointAndDeopt(instr); 541 RecordCallPosition(instr);
542 break; 542 break;
543 } 543 }
544 case kArchJmp: 544 case kArchJmp:
545 AssembleArchJump(i.InputRpo(0)); 545 AssembleArchJump(i.InputRpo(0));
546 break; 546 break;
547 case kArchLookupSwitch: 547 case kArchLookupSwitch:
548 AssembleArchLookupSwitch(instr); 548 AssembleArchLookupSwitch(instr);
549 break; 549 break;
550 case kArchTableSwitch: 550 case kArchTableSwitch:
551 AssembleArchTableSwitch(instr); 551 AssembleArchTableSwitch(instr);
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 } 1433 }
1434 } 1434 }
1435 MarkLazyDeoptSite(); 1435 MarkLazyDeoptSite();
1436 } 1436 }
1437 1437
1438 #undef __ 1438 #undef __
1439 1439
1440 } // namespace internal 1440 } // namespace internal
1441 } // namespace compiler 1441 } // namespace compiler
1442 } // namespace v8 1442 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698